{"_id":"redent","_rev":"2801","name":"redent","description":"Strip redundant indentation and indent the string","dist-tags":{"latest":"4.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2021-06-03T09:56:12.000Z","created":"2015-09-29T10:54:47.673Z","4.0.0":"2021-05-03T19:21:04.019Z","3.0.0":"2019-04-26T06:38:25.407Z","2.0.0":"2016-07-10T22:08:32.052Z","1.0.0":"2015-09-29T10:54:47.673Z"},"users":{},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/redent.git"},"versions":{"4.0.0":{"name":"redent","version":"4.0.0","description":"Strip redundant indentation and indent the string","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/redent.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava && tsd"},"keywords":["string","strip","trim","indent","indentation","add","reindent","normalize","remove","whitespace","space"],"dependencies":{"indent-string":"^5.0.0","strip-indent":"^4.0.0"},"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.39.1"},"gitHead":"d1e765ad6b07f7a579b891cab0acbed50c01ecbf","bugs":{"url":"https://github.com/sindresorhus/redent/issues"},"homepage":"https://github.com/sindresorhus/redent#readme","_id":"redent@4.0.0","_nodeVersion":"16.0.0","_npmVersion":"7.10.0","dist":{"shasum":"0c0ba7caabb24257ab3bb7a4fd95dd1d5c5681f9","size":1936,"noattachment":false,"key":"/redent/-/redent-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/redent/download/redent-4.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redent_4.0.0_1620069663879_0.3446326247602982"},"_hasShrinkwrap":false,"publish_time":1620069664019,"_cnpm_publish_time":1620069664019},"3.0.0":{"name":"redent","version":"3.0.0","description":"Strip redundant indentation and indent the string","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/redent.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["string","strip","trim","indent","indentation","add","reindent","normalize","remove","whitespace","space"],"dependencies":{"indent-string":"^4.0.0","strip-indent":"^3.0.0"},"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"3c13601b64ced8957f15b6a4c288afcc97a2f402","bugs":{"url":"https://github.com/sindresorhus/redent/issues"},"homepage":"https://github.com/sindresorhus/redent#readme","_id":"redent@3.0.0","_nodeVersion":"10.15.3","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"e557b7998316bb53c9f1f56fa626352c6963059f","size":1814,"noattachment":false,"key":"/redent/-/redent-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/redent/download/redent-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redent_3.0.0_1556260705251_0.1406445244526373"},"_hasShrinkwrap":false,"publish_time":1556260705407,"_cnpm_publish_time":1556260705407},"2.0.0":{"name":"redent","version":"2.0.0","description":"Strip redundant indentation and indent the string","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/redent.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["string","str","strip","trim","indent","indentation","add","reindent","normalize","remove","whitespace","space"],"dependencies":{"indent-string":"^3.0.0","strip-indent":"^2.0.0"},"devDependencies":{"ava":"*","xo":"*"},"xo":{"esnext":true},"gitHead":"90d90c6fe45eb7d5fa317c50af03ebac1b7b281f","bugs":{"url":"https://github.com/sindresorhus/redent/issues"},"homepage":"https://github.com/sindresorhus/redent#readme","_id":"redent@2.0.0","_shasum":"c1b2007b42d57eb1389079b3c8333639d5e1ccaa","_from":".","_npmVersion":"2.15.5","_nodeVersion":"4.4.5","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"c1b2007b42d57eb1389079b3c8333639d5e1ccaa","size":1606,"noattachment":false,"key":"/redent/-/redent-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/redent/download/redent-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/redent-2.0.0.tgz_1468188510556_0.9630645732395351"},"directories":{},"publish_time":1468188512052,"_cnpm_publish_time":1468188512052,"_hasShrinkwrap":false},"1.0.0":{"name":"redent","version":"1.0.0","description":"Strip redundant indentation and indent the string","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/redent"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["string","str","strip","trim","indent","indentation","add","reindent","normalize","remove","whitespace","space"],"dependencies":{"indent-string":"^2.1.0","strip-indent":"^1.0.1"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"97d9db1dbd5894fe1b14e01040da283b8d53409d","bugs":{"url":"https://github.com/sindresorhus/redent/issues"},"homepage":"https://github.com/sindresorhus/redent","_id":"redent@1.0.0","_shasum":"cf916ab1fd5f1f16dfb20822dd6ec7f730c2afde","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"cf916ab1fd5f1f16dfb20822dd6ec7f730c2afde","size":1611,"noattachment":false,"key":"/redent/-/redent-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/redent/download/redent-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1443524087673,"_cnpm_publish_time":1443524087673,"_hasShrinkwrap":false}},"readme":"# redent\n\n> [Strip redundant indentation](https://github.com/sindresorhus/strip-indent) and [indent the string](https://github.com/sindresorhus/indent-string)\n\n## Install\n\n```\n$ npm install redent\n```\n\n## Usage\n\n```js\nimport redent from 'redent';\n\nredent('\\n  foo\\n    bar\\n', 1);\n//=> '\\n foo\\n   bar\\n'\n```\n\n## API\n\n### redent(string, count?, options?)\n\n#### string\n\nType: `string`\n\nThe string to normalize indentation.\n\n#### count\n\nType: `number`\\\nDefault: `0`\n\nHow many times you want `options.indent` repeated.\n\n#### options\n\nType: `object`\n\n##### indent\n\nType: `string`\\\nDefault: `' '`\n\nThe string to use for the indent.\n\n##### includeEmptyLines\n\nType: `boolean`\\\nDefault: `false`\n\nAlso indent empty lines.\n\n---\n\n<div align=\"center\">\n\t<b>\n\t\t<a href=\"https://tidelift.com/subscription/pkg/npm-redent?utm_source=npm-redent&utm_medium=referral&utm_campaign=readme\">Get professional support for this package with a Tidelift subscription</a>\n\t</b>\n\t<br>\n\t<sub>\n\t\tTidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.\n\t</sub>\n</div>\n","_attachments":{},"homepage":"https://github.com/sindresorhus/redent#readme","bugs":{"url":"https://github.com/sindresorhus/redent/issues"},"license":"MIT"}