{"_id":"ts-dedent","_rev":"459863","name":"ts-dedent","description":"TypeScript package which smartly trims and strips indentation from multi-line strings","dist-tags":{"latest":"2.2.0"},"maintainers":[{"name":"tamino-martinius","email":"dev@zaku.eu"}],"time":{"modified":"2021-08-05T07:37:14.000Z","created":"2018-06-14T15:17:54.591Z","2.2.0":"2021-08-01T15:22:31.863Z","2.1.1":"2021-03-31T04:39:26.873Z","2.1.0":"2021-03-24T07:39:17.023Z","2.0.0":"2020-09-28T19:45:19.798Z","1.2.0":"2020-09-28T17:44:31.703Z","1.1.1":"2020-01-25T18:02:55.682Z","1.1.0":"2019-07-26T06:18:13.963Z","1.0.0":"2018-06-14T15:17:54.591Z"},"users":{"ryaninvents":true},"author":{"name":"Tamino Martinius","email":"dev@zaku.eu"},"repository":{"type":"git","url":"git+https://github.com/tamino-martinius/node-ts-dedent.git"},"versions":{"2.2.0":{"name":"ts-dedent","version":"2.2.0","description":"TypeScript package which smartly trims and strips indentation from multi-line strings","author":{"name":"Tamino Martinius","email":"dev@zaku.eu"},"main":"./dist/index.js","module":"./esm/index.js","jsnext:main":"./dist/index.js","typings":"./dist/index.d.ts","license":"MIT","repository":{"type":"git","url":"git+https://github.com/tamino-martinius/node-ts-dedent.git"},"keywords":["dedent","deindent","indentation","multi-line string","multiline strings","template literals","template strings","ts","typescript","es6","harmony"],"engines":{"node":">=6.10"},"scripts":{"coverage":"rm -rf coverage* && jest --coverage","pretest":"npm run lint","test":"jest","lint":"eslint .","watch":"tsc -w","ci":"npm run coverage && codecov","compile":"rm -rf dist/* && rm -rf esm/* && tsc --module commonjs --outdir dist && tsc --module es6 --outdir esm","preversion":"npm run compile && git add ."},"devDependencies":{"@types/jest":"^26.0.24","@typescript-eslint/eslint-plugin":"^4.28.5","@typescript-eslint/parser":"^4.28.5","codecov":"^3.8.3","eslint":"^7.32.0","jest":"^27.0.6","ts-jest":"^27.0.4","typescript":"~4.3.5"},"jest":{"transform":{".ts":"ts-jest"},"testRegex":"\\.(test|spec)\\.ts$","moduleFileExtensions":["ts","tsx","js","json"]},"gitHead":"70e153460de0141afd09ff402b50047103a4c409","bugs":{"url":"https://github.com/tamino-martinius/node-ts-dedent/issues"},"homepage":"https://github.com/tamino-martinius/node-ts-dedent#readme","_id":"ts-dedent@2.2.0","_nodeVersion":"14.15.1","_npmVersion":"6.14.9","dist":{"shasum":"39e4bd297cd036292ae2394eb3412be63f563bb5","size":5920,"noattachment":false,"key":"/ts-dedent/-/ts-dedent-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ts-dedent/download/ts-dedent-2.2.0.tgz"},"_npmUser":{"name":"tamino-martinius","email":"dev@zaku.eu"},"directories":{},"maintainers":[{"name":"tamino-martinius","email":"dev@zaku.eu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ts-dedent_2.2.0_1627831351711_0.7402090960632164"},"_hasShrinkwrap":false,"publish_time":1627831351863,"_cnpm_publish_time":1627831351863},"2.1.1":{"name":"ts-dedent","version":"2.1.1","description":"TypeScript package which smartly trims and strips indentation from multi-line strings","author":{"name":"Tamino Martinius","email":"dev@zaku.eu"},"main":"./dist/index.js","module":"./dist/index.js","jsnext:main":"./dist/index.js","typings":"./dist/index.d.ts","license":"MIT","repository":{"type":"git","url":"git+https://github.com/tamino-martinius/node-ts-dedent.git"},"keywords":["dedent","deindent","indentation","multi-line string","multiline strings","template literals","template strings","ts","typescript","es6","harmony"],"engines":{"node":">=6.10"},"scripts":{"coverage":"rm -rf coverage* && jest --coverage","pretest":"npm run lint","test":"jest","lint":"eslint .","watch":"tsc -w","ci":"npm run coverage && codecov","compile":"rm -rf dist/* && tsc","preversion":"npm run compile && git add ."},"devDependencies":{"@types/jest":"^26.0.22","@typescript-eslint/eslint-plugin":"^4.20.0","@typescript-eslint/parser":"^4.20.0","codecov":"^3.8.1","eslint":"^7.23.0","jest":"^26.6.3","ts-jest":"^26.5.4","typescript":"~4.2.3"},"jest":{"transform":{".ts":"ts-jest"},"testRegex":"\\.(test|spec)\\.ts$","moduleFileExtensions":["ts","tsx","js","json"]},"gitHead":"1abbfc156e00d969ae4af125882b54b57cbe9d75","bugs":{"url":"https://github.com/tamino-martinius/node-ts-dedent/issues"},"homepage":"https://github.com/tamino-martinius/node-ts-dedent#readme","_id":"ts-dedent@2.1.1","_nodeVersion":"14.15.1","_npmVersion":"6.14.9","dist":{"shasum":"6dd56870bb5493895171334fa5d7e929107e5bbc","size":5051,"noattachment":false,"key":"/ts-dedent/-/ts-dedent-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ts-dedent/download/ts-dedent-2.1.1.tgz"},"_npmUser":{"name":"tamino-martinius","email":"dev@zaku.eu"},"directories":{},"maintainers":[{"name":"tamino-martinius","email":"dev@zaku.eu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ts-dedent_2.1.1_1617165566700_0.517029325927779"},"_hasShrinkwrap":false,"publish_time":1617165566873,"_cnpm_publish_time":1617165566873},"2.1.0":{"name":"ts-dedent","version":"2.1.0","description":"TypeScript package which smartly trims and strips indentation from multi-line strings","author":{"name":"Tamino Martinius","email":"dev@zaku.eu"},"main":"./dist/index.js","module":"./dist/index.js","jsnext:main":"./dist/index.js","typings":"./dist/index.d.ts","license":"MIT","repository":{"type":"git","url":"git+https://github.com/tamino-martinius/node-ts-dedent.git"},"keywords":["dedent","deindent","indentation","multi-line string","multiline strings","template literals","template strings","ts","typescript","es6","harmony"],"engines":{"node":">=6.10"},"scripts":{"coverage":"rm -rf coverage* && jest --coverage","pretest":"npm run lint","test":"jest","lint":"eslint .","watch":"tsc -w","ci":"npm run coverage && codecov","compile":"rm -rf dist/* && tsc","preversion":"npm run compile && git add ."},"devDependencies":{"@types/jest":"^26.0.14","@typescript-eslint/eslint-plugin":"^4.2.0","@typescript-eslint/parser":"^4.2.0","codecov":"^3.7.2","eslint":"^7.10.0","jest":"^26.4.2","ts-jest":"^26.4.0","typescript":"~4.0.3"},"jest":{"transform":{".ts":"ts-jest"},"testRegex":"\\.(test|spec)\\.ts$","moduleFileExtensions":["ts","tsx","js","json"]},"gitHead":"deadd0c618dbe46a81ad4b52a57cc31cfa7a9bdf","bugs":{"url":"https://github.com/tamino-martinius/node-ts-dedent/issues"},"homepage":"https://github.com/tamino-martinius/node-ts-dedent#readme","_id":"ts-dedent@2.1.0","_nodeVersion":"14.15.1","_npmVersion":"6.14.9","dist":{"shasum":"2df17a997ee5310a96d2be7adca0ba7c3eabf36a","size":5005,"noattachment":false,"key":"/ts-dedent/-/ts-dedent-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ts-dedent/download/ts-dedent-2.1.0.tgz"},"_npmUser":{"name":"tamino-martinius","email":"dev@zaku.eu"},"directories":{},"maintainers":[{"name":"tamino-martinius","email":"dev@zaku.eu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ts-dedent_2.1.0_1616571556867_0.04029824059706422"},"_hasShrinkwrap":false,"publish_time":1616571557023,"_cnpm_publish_time":1616571557023},"2.0.0":{"name":"ts-dedent","version":"2.0.0","description":"TypeScript package which smartly trims and strips indentation from multi-line strings","author":{"name":"Tamino Martinius","email":"dev@zaku.eu"},"main":"./dist/index.js","module":"./dist/index.js","jsnext:main":"./dist/index.js","typings":"./dist/index.d.ts","license":"MIT","repository":{"type":"git","url":"git+https://github.com/tamino-martinius/node-ts-dedent.git"},"keywords":["dedent","deindent","indentation","multi-line string","multiline strings","template literals","template strings","ts","typescript","es6","harmony"],"engines":{"node":">=6.10"},"scripts":{"coverage":"rm -rf coverage* && jest --coverage","pretest":"npm run lint","test":"jest","lint":"eslint .","watch":"tsc -w","ci":"npm run coverage && codecov","compile":"rm -rf dist/* && tsc","preversion":"npm run compile && git add ."},"devDependencies":{"@types/jest":"^26.0.14","@typescript-eslint/eslint-plugin":"^4.2.0","@typescript-eslint/parser":"^4.2.0","codecov":"^3.7.2","eslint":"^7.10.0","jest":"^26.4.2","ts-jest":"^26.4.0","typescript":"~4.0.3"},"jest":{"transform":{".ts":"ts-jest"},"testRegex":"\\.(test|spec)\\.ts$","moduleFileExtensions":["ts","tsx","js","json"]},"gitHead":"49635b610831f0bf97d247168acc9598bafbbe6d","bugs":{"url":"https://github.com/tamino-martinius/node-ts-dedent/issues"},"homepage":"https://github.com/tamino-martinius/node-ts-dedent#readme","_id":"ts-dedent@2.0.0","_nodeVersion":"10.17.0","_npmVersion":"6.14.8","dist":{"shasum":"47c5eb23d9096f3237cc413bc82d387d36dbe690","size":4880,"noattachment":false,"key":"/ts-dedent/-/ts-dedent-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ts-dedent/download/ts-dedent-2.0.0.tgz"},"maintainers":[{"name":"tamino-martinius","email":"dev@zaku.eu"}],"_npmUser":{"name":"tamino-martinius","email":"dev@zaku.eu"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ts-dedent_2.0.0_1601322319688_0.5638466579656132"},"_hasShrinkwrap":false,"publish_time":1601322319798,"_cnpm_publish_time":1601322319798},"1.2.0":{"name":"ts-dedent","version":"1.2.0","description":"TypeScript package which smartly trims and strips indentation from multi-line strings","author":{"name":"Tamino Martinius","email":"dev@zaku.eu"},"main":"./dist/index.js","module":"./dist/index.js","jsnext:main":"./dist/index.js","typings":"./dist/index.d.ts","license":"MIT","repository":{"type":"git","url":"git+https://github.com/tamino-martinius/node-ts-dedent.git"},"keywords":["dedent","deindent","indentation","multi-line string","multiline strings","template literals","template strings","ts","typescript","es6","harmony"],"engines":{"node":">=6.10"},"scripts":{"coverage":"rm -rf coverage* && jest --coverage","pretest":"npm run lint","test":"jest","lint":"eslint .","watch":"tsc -w","ci":"npm run coverage && codecov","compile":"rm -rf dist/* && tsc","preversion":"npm run compile && git add ."},"devDependencies":{"@types/jest":"^26.0.14","@typescript-eslint/eslint-plugin":"^4.2.0","@typescript-eslint/parser":"^4.2.0","codecov":"^3.7.2","eslint":"^7.10.0","jest":"^26.4.2","ts-jest":"^26.4.0","typescript":"~4.0.3"},"jest":{"transform":{".ts":"ts-jest"},"testRegex":"\\.(test|spec)\\.ts$","moduleFileExtensions":["ts","tsx","js","json"]},"gitHead":"8c86f1819a2ee870a23e4bc897d9aa22516cbd74","bugs":{"url":"https://github.com/tamino-martinius/node-ts-dedent/issues"},"homepage":"https://github.com/tamino-martinius/node-ts-dedent#readme","_id":"ts-dedent@1.2.0","_nodeVersion":"10.17.0","_npmVersion":"6.14.8","dist":{"shasum":"6aa2229d837159bb6d635b6b233002423b91e0b0","size":4662,"noattachment":false,"key":"/ts-dedent/-/ts-dedent-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ts-dedent/download/ts-dedent-1.2.0.tgz"},"maintainers":[{"name":"tamino-martinius","email":"dev@zaku.eu"}],"_npmUser":{"name":"tamino-martinius","email":"dev@zaku.eu"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ts-dedent_1.2.0_1601315071558_0.5777825617259871"},"_hasShrinkwrap":false,"publish_time":1601315071703,"_cnpm_publish_time":1601315071703},"1.1.1":{"name":"ts-dedent","version":"1.1.1","description":"TypeScript package which smartly trims and strips indentation from multi-line strings","author":{"name":"Tamino Martinius","email":"dev@zaku.eu"},"main":"./dist/index.js","module":"./dist/index.js","jsnext:main":"./dist/index.js","typings":"./dist/index.d.ts","license":"MIT","repository":{"type":"git","url":"git+https://github.com/tamino-martinius/node-ts-dedent.git"},"keywords":["dedent","deindent","indentation","multi-line string","multiline strings","template literals","template strings","ts","typescript","es6","harmony"],"engines":{"node":">=6.10"},"scripts":{"coverage":"rm -rf coverage* && jest --coverage","test":"jest","watch":"tsc -w","ci":"npm run coverage && codecov","compile":"rm -rf dist/* && tsc","preversion":"npm run compile && git add ."},"devDependencies":{"@types/jest":"^24.9.1","@types/node":"^13.5.0","codecov":"^3.6.2","jest":"^25.1.0","ts-jest":"^25.0.0","tslint":"^6.0.0","tslint-config-airbnb":"^5.11.2","typescript":"^3.7.5"},"jest":{"transform":{".ts":"<rootDir>/node_modules/ts-jest/preprocessor.js"},"testRegex":"\\.(test|spec)\\.ts$","moduleFileExtensions":["ts","tsx","js","json"]},"gitHead":"a8bb64ecd45c373b3820f76848a1630415f32a16","bugs":{"url":"https://github.com/tamino-martinius/node-ts-dedent/issues"},"homepage":"https://github.com/tamino-martinius/node-ts-dedent#readme","_id":"ts-dedent@1.1.1","_nodeVersion":"10.17.0","_npmVersion":"6.11.3","dist":{"shasum":"68fad040d7dbd53a90f545b450702340e17d18f3","size":4518,"noattachment":false,"key":"/ts-dedent/-/ts-dedent-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ts-dedent/download/ts-dedent-1.1.1.tgz"},"maintainers":[{"name":"tamino-martinius","email":"dev@zaku.eu"}],"_npmUser":{"name":"tamino-martinius","email":"dev@zaku.eu"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ts-dedent_1.1.1_1579975375582_0.7711781392317429"},"_hasShrinkwrap":false,"publish_time":1579975375682,"_cnpm_publish_time":1579975375682},"1.1.0":{"name":"ts-dedent","version":"1.1.0","description":"TypeScript package which smartly trims and strips indentation from multi-line strings","author":{"name":"Tamino Martinius","email":"dev@zaku.eu"},"main":"./dist/index.js","module":"./dist/index.js","jsnext:main":"./dist/index.js","typings":"./dist/index.d.ts","license":"MIT","repository":{"type":"git","url":"git+https://github.com/tamino-martinius/node-ts-dedent.git"},"keywords":["dedent","deindent","indentation","multi-line string","multiline strings","template literals","template strings","ts","typescript","es6","harmony"],"engines":{"node":">=6.10"},"scripts":{"coverage":"rm -rf coverage* && jest --coverage","test":"jest","watch":"tsc -w","ci":"npm run coverage && codecov","compile":"rm -rf dist/* && tsc","preversion":"npm run compile && git add ."},"devDependencies":{"@types/jest":"^24.0.15","@types/node":"^12.6.8","codecov":"^3.5.0","jest":"^24.8.0","ts-jest":"^24.0.2","tslint":"^5.18.0","tslint-config-airbnb":"^5.11.1","typescript":"^3.5.3"},"jest":{"transform":{".ts":"<rootDir>/node_modules/ts-jest/preprocessor.js"},"testRegex":"\\.(test|spec)\\.ts$","moduleFileExtensions":["ts","tsx","js","json"]},"gitHead":"3a86d129e0b3472d9a0f47905f6595d22a3d780b","bugs":{"url":"https://github.com/tamino-martinius/node-ts-dedent/issues"},"homepage":"https://github.com/tamino-martinius/node-ts-dedent#readme","_id":"ts-dedent@1.1.0","_nodeVersion":"8.10.0","_npmVersion":"6.9.0","dist":{"shasum":"67983940793183dc7c7f820acb66ba02cdc33c6e","size":3281,"noattachment":false,"key":"/ts-dedent/-/ts-dedent-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ts-dedent/download/ts-dedent-1.1.0.tgz"},"maintainers":[{"name":"tamino-martinius","email":"dev@zaku.eu"}],"_npmUser":{"name":"tamino-martinius","email":"dev@zaku.eu"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ts-dedent_1.1.0_1564121893818_0.3016540772604097"},"_hasShrinkwrap":false,"publish_time":1564121893963,"_cnpm_publish_time":1564121893963},"1.0.0":{"name":"ts-dedent","version":"1.0.0","description":"TypeScript package which smartly trims and strips indentation from multi-line strings","author":{"name":"Tamino Martinius","email":"dev@zaku.eu"},"main":"./dist/index.js","module":"./dist/index.js","jsnext:main":"./dist/index.js","typings":"./dist/index.d.ts","license":"MIT","files":["dist/*"],"repository":{"type":"git","url":"git+https://github.com/tamino-martinius/node-ts-dedent.git"},"keywords":["dedent","deindent","indentation","multi-line string","multiline strings","template literals","template strings","ts","typescript","es6","harmony"],"engines":{"node":">=6.10"},"scripts":{"coverage":"rm -rf coverage* && jest --coverage","test":"jest","watch":"tsc -w","ci":"npm run coverage && codecov","compile":"rm -rf dist/* && tsc","preversion":"npm run compile && git add ."},"devDependencies":{"@types/jest":"^23.1.0","@types/node":"^10.3.3","codecov":"^3.0.2","jest":"^23.1.0","ts-jest":"^22.4.6","tslint":"^5.10.0","tslint-config-airbnb":"^5.9.2","typescript":"^2.9.2"},"jest":{"transform":{".ts":"<rootDir>/node_modules/ts-jest/preprocessor.js"},"testRegex":"\\.(test|spec)\\.ts$","moduleFileExtensions":["ts","tsx","js","json"]},"gitHead":"a5c5eae43f01e1e751bbd437458cf74572176d66","bugs":{"url":"https://github.com/tamino-martinius/node-ts-dedent/issues"},"homepage":"https://github.com/tamino-martinius/node-ts-dedent#readme","_id":"ts-dedent@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.10.0","_npmUser":{"name":"next-model","email":"dev@zaku.eu"},"dist":{"shasum":"685c0069d013d4c35e683463e7692eea2ffa18da","size":3276,"noattachment":false,"key":"/ts-dedent/-/ts-dedent-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ts-dedent/download/ts-dedent-1.0.0.tgz"},"maintainers":[{"name":"tamino-martinius","email":"dev@zaku.eu"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ts-dedent_1.0.0_1528989474525_0.060437162697189795"},"_hasShrinkwrap":false,"publish_time":1528989474591,"_cnpm_publish_time":1528989474591}},"readme":"# TypeScript Dedent\n\n[![codecov](https://codecov.io/gh/tamino-martinius/node-ts-dedent/branch/master/graph/badge.svg)](https://codecov.io/gh/tamino-martinius/node-ts-dedent)\n\nTypeScript package which smartly trims and strips indentation from multi-line strings.\n\n## Usage Examples\n\n```js\nimport dedent from 'dedent';\n\nconsole.log(dedent`A string that gets so long you need to break it over\n                    multiple lines. Luckily dedent is here to keep it\n                    readable without lots of spaces ending up in the string\n                    itself.`);\n\nconsole.log(dedent`\n  A string that gets so long you need to break it over\n  multiple lines. Luckily dedent is here to keep it\n  readable without lots of spaces ending up in the string\n  itself.\n`);\n```\n\n```txt\nA string that gets so long you need to break it over\nmultiple lines. Luckily dedent is here to keep it\nreadable without lots of spaces ending up in the string\nitself.\n```\n\n---\n\n```js\nconsole.log(dedent`\n  Leading and trailing lines will be trimmed, so you can write something like\n  this and have it work as you expect:\n\n    * how convenient it is\n    * that I can use an indented list\n        - and still have it do the right thing\n\n  That's all.\n`);\n```\n\n```txt\nLeading and trailing lines will be trimmed, so you can write something like\nthis and have it work as you expect:\n\n  * how convenient it is\n  * that I can use an indented list\n    - and still have it do the right thing\n\nThat's all.\n```\n\n---\n\n```js\nconsole.log(dedent`\n  Also works fine\n\n  ${1}. With any kind of\n  ${2}. Placeholders\n`);\n```\n\n```txt\nAlso works fine\n\n1. With any kind of\n2. Placeholders\n```\n\n---\n\n```js\nconsole.log(dedent(`\n  Wait! I lied. Dedent can also be used as a function.\n`);\n```\n\n```txt\nWait! I lied. Dedent can also be used as a function.\n```\n\n## License\n\nMIT\n\n## Based on\n\n- [dedent](https://www.npmjs.com/package/dedent) by ~dmnd\n- [dedent-js](https://www.npmjs.com/package/dedent-js) by ~martin-kolarik\n\n## Changelog\n\nSee [history](HISTORY.md) for more details.\n\n- `2.2.0` **2021-08-01** Add indentation to values with multiline strings & added ESM module\n- `2.1.1` **2021-03-31** Update dependencies\n- `2.1.0` **2021-03-24** Bugfixes\n- `2.0.0` **2020-09-28** Bugfixes\n- `1.2.0` **2020-09-28** Update dependencies and a couple of minor improvments\n- `1.1.0` **2019-07-26** Update dependencies and fixed links in readme\n- `1.0.0` **2018-06-14** Initial release\n","_attachments":{},"homepage":"https://github.com/tamino-martinius/node-ts-dedent#readme","bugs":{"url":"https://github.com/tamino-martinius/node-ts-dedent/issues"},"license":"MIT"}