{"name":"strip-indent","version":"4.1.0","keywords":["strip","indent","indentation","normalize","remove","delete","whitespace","space","tab","string","dedent"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"strip-indent@4.1.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/strip-indent#readme","bugs":{"url":"https://github.com/sindresorhus/strip-indent/issues"},"dist":{"shasum":"8658a77cece02a4f27064bdb0a459257edb565f6","tarball":"http://registry-npm.ywwl.com/strip-indent/download/strip-indent-4.1.0.tgz","fileCount":5,"integrity":"sha512-OA95x+JPmL7kc7zCu+e+TeYxEiaIyndRx0OrBcK2QPPH09oAndr2ALvymxWA+Lx1PYYvFUm4O63pRkdJAaW96w==","signatures":[{"sig":"MEUCIQDvodEuNuau/Y6TiqS4CZAcblUt+CBkaFjLagldRo0idAIgfJ3/IM4e7oYFBNPILLwzfeiXSgbBaCfuzEszyS96Ftw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4735,"size":2023,"noattachment":false,"key":"/strip-indent/-/strip-indent-4.1.0.tgz"},"type":"module","types":"./index.d.ts","engines":{"node":">=12"},"exports":"./index.js","funding":"https://github.com/sponsors/sindresorhus","gitHead":"0d3cfcafffeba020e725b1ef362fcf2b147f02fc","scripts":{"test":"xo && ava"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/strip-indent.git","type":"git"},"_npmVersion":"10.9.2","description":"Strip leading whitespace from each line in a string","directories":{},"_nodeVersion":"20.19.1","_hasShrinkwrap":false,"devDependencies":{"xo":"^0.39.1","ava":"^3.15.0"},"_npmOperationalInternal":{"tmp":"tmp/strip-indent_4.1.0_1757594608898_0.004637956060737247","host":"s3://npm-registry-packages-npm-production"},"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":1757594609103,"_cnpm_publish_time":1757594609103,"dist-tags":{"latest":"4.1.1"}}