{"versions":{"1.0.1":{"name":"dedent-js","description":"Remove indentation from multiline strings","version":"1.0.1","homepage":"https://github.com/MartinKolarik/dedent-js/","github":"https://github.com/MartinKolarik/dedent-js/","main":"lib/index.js","keywords":["multiline strings","template literals","template strings","dedent","deintend","indentation","es6","harmony"],"author":{"name":"Martin Kolárik","email":"martin@kolarik.sk","url":"https://kolarik.me"},"license":"MIT","devDependencies":{"chai":"~3.2","babel":"~5.8","mocha":"~2.3","typescript":"~1.6"},"scripts":{"build":"tsc","test":"babel test/tests.es6 --out-file test/tests.js && mocha test"},"repository":{"type":"git","url":"git+https://github.com/MartinKolarik/dedent-js.git"},"bugs":{"url":"https://github.com/MartinKolarik/dedent-js/issues/"},"typescript":{"definition":"./lib/index.d.ts"},"gitHead":"50d64e075b820e18d1e543f1e9f537817c98d735","_id":"dedent-js@1.0.1","_shasum":"bee5fb7c9e727d85dffa24590d10ec1ab1255305","_from":".","_npmVersion":"3.3.4","_nodeVersion":"0.12.7","_npmUser":{"name":"anonymous","email":"martin@kolarik.sk"},"dist":{"shasum":"bee5fb7c9e727d85dffa24590d10ec1ab1255305","size":2908,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/dedent-js/-/dedent-js-1.0.1.tgz","integrity":"sha512-OUepMozQULMLUmhxS95Vudo0jb0UchLimi3+pQ2plj61Fcy8axbP9hbiD4Sz6DPqn6XG3kfmziVfQ1rSys5AJQ=="},"maintainers":[{"name":"anonymous","email":"martin@kolarik.sk"}],"directories":{},"publish_time":1442694147700,"_hasShrinkwrap":false,"_cnpm_publish_time":1442694147700,"_cnpmcore_publish_time":"2021-12-16T13:45:21.694Z","contributors":[]},"1.0.0":{"name":"dedent-js","description":"Remove indentation from multiline strings","version":"1.0.0","homepage":"https://github.com/MartinKolarik/dedent-js/","github":"https://github.com/MartinKolarik/dedent-js/","main":"lib/index.js","keywords":["multiline strings","template literals","template strings","dedent","deintend","indentation","es6","harmony"],"author":{"name":"Martin Kolárik","email":"martin@kolarik.sk","url":"https://kolarik.me"},"license":"MIT","devDependencies":{"chai":"~3.2","babel":"~5.8","mocha":"~2.3","typescript":"~1.6"},"scripts":{"build":"tsc","test":"babel test/tests.es6 --out-file test/tests.js && mocha test"},"repository":{"type":"git","url":"git+https://github.com/MartinKolarik/dedent-js.git"},"bugs":{"url":"https://github.com/MartinKolarik/dedent-js/issues/"},"gitHead":"f31af077f3f497756c277f0064d602a04c8f59c7","_id":"dedent-js@1.0.0","_shasum":"3c34880bd6e62a618dde76d2186271848634899e","_from":".","_npmVersion":"3.3.4","_nodeVersion":"0.12.7","_npmUser":{"name":"anonymous","email":"martin@kolarik.sk"},"dist":{"shasum":"3c34880bd6e62a618dde76d2186271848634899e","size":2848,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/dedent-js/-/dedent-js-1.0.0.tgz","integrity":"sha512-2iy4yUSvqfMph96Aa8Fdpg8EXD9N01HWbeAN6BuE07YbYulWI6KtArmddvezAsfy5zBM7k754thbq0il9PAGkg=="},"maintainers":[{"name":"anonymous","email":"martin@kolarik.sk"}],"directories":{},"publish_time":1442693434564,"_hasShrinkwrap":false,"_cnpm_publish_time":1442693434564,"_cnpmcore_publish_time":"2021-12-16T13:45:21.891Z","contributors":[]}},"dist-tags":{"latest":"1.0.1"},"name":"dedent-js","time":{"created":"2022-01-26T20:25:36.437Z","modified":"2023-07-28T10:16:35.397Z","1.0.1":"2015-09-19T20:22:27.700Z","1.0.0":"2015-09-19T20:10:34.564Z"},"readme":"# dedent-js\n\nRemoves indentation from multiline strings. Works with both tabs and spaces.\n\n## Installation\n\n```\n$ npm install dedent-js\n```\n\n## Usage\n\n```js\n// Dedent can be also used as a function.\nexpect(dedent`Line #1\n\tLine #2\n\tLine #3`).to.equal('Line #1\\nLine #2\\nLine #3');\n\n// Leading/trailing line break is removed.\nexpect(\n\tdedent`\n\tLine #1\n\tLine #2\n\tLine #3\n\t`\n).to.equal('Line #1\\nLine #2\\nLine #3');\n\n// No more than one leading/trailing line break is removed.\nexpect(\n\tdedent`\n\n\tLine #1\n\tLine #2\n\tLine #3\n\n\t`\n).to.equal('\\nLine #1\\nLine #2\\nLine #3\\n');\n\n// Only the \"base\" indentation is removed.\nexpect(\n\tdedent`\n\tLine #1\n\t\tLine #2\n\t\t\tLine #3\n\t`\n).to.equal('Line #1\\n\\tLine #2\\n\\t\\tLine #3');\n\n// The last line is ignored if it doesn't contain anything else than whitespace.\nexpect(\n\tfunction () {\n\t\treturn dedent`\n\t\t\tLine #1\n\t\t\tLine #2\n\t\t\tLine #3\n\t\t`;\n\t}()\n).to.equal('Line #1\\nLine #2\\nLine #3');\n\n// Escaped characters are NOT ignored.\nexpect(\n\tdedent`\n\t\\tLine #1\n\t\\tLine #2\n\t\\tLine #3\n\t`\n).to.equal('Line #1\\nLine #2\\nLine #3');\n```\n\n## License\nCopyright (c) 2015 Martin Kolárik. Released under the MIT license.","users":{}}