{"name":"strip-indent","version":"4.1.1","description":"Strip leading whitespace from each line in a string","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/strip-indent.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"},"keywords":["strip","indent","indentation","normalize","remove","delete","whitespace","space","tab","string","dedent"],"devDependencies":{"ava":"^3.15.0","xo":"^0.39.1"},"gitHead":"102b553f9efaec1c2451cd9ac2385269768f1fed","types":"./index.d.ts","_id":"strip-indent@4.1.1","bugs":{"url":"https://github.com/sindresorhus/strip-indent/issues"},"homepage":"https://github.com/sindresorhus/strip-indent#readme","_nodeVersion":"20.19.5","_npmVersion":"11.6.1","dist":{"integrity":"sha512-SlyRoSkdh1dYP0PzclLE7r0M9sgbFKKMFXpFRUMNuKhQSbC6VQIGzq3E0qsfvGJaUFJPGv6Ws1NZ/haTAjfbMA==","shasum":"aba13de189d4ad9a17f6050e76554ac27585c7af","tarball":"http://registry-npm.ywwl.com/strip-indent/download/strip-indent-4.1.1.tgz","fileCount":5,"unpackedSize":4706,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQC8jUfRf7CNtUySPlDdx24DDxAw3TaPsq1tgYtH+jSqVAIgDxywZLIZsP+eWTq2GRGF66D2yTahmLdnyb2EZYHlg3M="}],"size":2014,"noattachment":false,"key":"/strip-indent/-/strip-indent-4.1.1.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/strip-indent_4.1.1_1760280954293_0.0248457451731523"},"_hasShrinkwrap":false,"readme":"# strip-indent\n\n> Strip leading whitespace from each line in a string\n\nThe line with the least number of leading whitespace, ignoring empty lines, determines the number to remove.\n\nUseful for removing redundant indentation.\n\n## Install\n\n```sh\nnpm install strip-indent\n```\n\n## Usage\n\n```js\nimport stripIndent from 'strip-indent';\n\nconst string = '\\tunicorn\\n\\t\\tcake';\n/*\n\tunicorn\n\t\tcake\n*/\n\nstripIndent(string);\n/*\nunicorn\n\tcake\n*/\n```\n\n## API\n\n### stripIndent(string)\n\nStrip leading whitespace from each line in a string.\n\nThe line with the least number of leading whitespace, ignoring empty lines, determines the number to remove.\n\n### dedent(string)\n\nStrip leading whitespace from each line in a string and remove surrounding blank lines.\n\nLike `stripIndent()`, but also removes leading and trailing lines that contain only whitespace. Useful for template literals and multi-line strings where you want clean boundaries.\n\n```js\nimport {dedent} from 'strip-indent';\n\ndedent(`\n\tunicorn\n\t\tcake\n`);\n/*\nunicorn\n\tcake\n*/\n```\n\n## Related\n\n- [strip-indent-cli](https://github.com/sindresorhus/strip-indent-cli) - CLI for this module\n- [indent-string](https://github.com/sindresorhus/indent-string) - Indent each line in a string\n- [redent](https://github.com/sindresorhus/redent) - Strip redundant indentation and indent the string\n","publish_time":1760280954463,"_cnpm_publish_time":1760280954463,"dist-tags":{"latest":"4.1.1"}}