{"_id":"min-indent","_rev":"3202","name":"min-indent","description":"Get the shortest leading whitespace from lines in a string","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"time":{"modified":"2021-06-03T09:56:16.000Z","created":"2017-10-27T03:12:59.773Z","1.0.1":"2020-05-28T19:20:06.032Z","1.0.0":"2017-10-27T03:12:59.773Z"},"users":{},"author":{"name":"James Kyle","email":"me@thejameskyle.com","url":"thejameskyle.com"},"repository":{"type":"git","url":"git+https://github.com/thejameskyle/min-indent.git"},"versions":{"1.0.1":{"name":"min-indent","version":"1.0.1","description":"Get the shortest leading whitespace from lines in a string","main":"index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/thejameskyle/min-indent.git"},"author":{"name":"James Kyle","email":"me@thejameskyle.com","url":"thejameskyle.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"keywords":["indent","indentation","normalize","whitespace","space","tab","string","str","min","minimum"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"f0d5c6c309c964b67c41cd8bf28e6f58058fdc64","bugs":{"url":"https://github.com/thejameskyle/min-indent/issues"},"homepage":"https://github.com/thejameskyle/min-indent#readme","_id":"min-indent@1.0.1","_nodeVersion":"14.0.0","_npmVersion":"6.14.4","dist":{"shasum":"a63f681673b30571fbe8bc25686ae746eefa9869","size":1658,"noattachment":false,"key":"/min-indent/-/min-indent-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/min-indent/download/min-indent-1.0.1.tgz"},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/min-indent_1.0.1_1590693605903_0.7266404794655938"},"_hasShrinkwrap":false,"publish_time":1590693606032,"_cnpm_publish_time":1590693606032},"1.0.0":{"name":"min-indent","version":"1.0.0","description":"Get the shortest leading whitespace from lines in a string","main":"index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/thejameskyle/min-indent.git"},"author":{"name":"James Kyle","email":"me@thejameskyle.com","url":"thejameskyle.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["indent","indentation","normalize","whitespace","space","tab","string","str","min","minimum"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"867a9060c96c16997b349b565d7ebcab142967d7","bugs":{"url":"https://github.com/thejameskyle/min-indent/issues"},"homepage":"https://github.com/thejameskyle/min-indent#readme","_id":"min-indent@1.0.0","_shasum":"cfc45c37e9ec0d8f0a0ec3dd4ef7f7c3abe39256","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"dist":{"shasum":"cfc45c37e9ec0d8f0a0ec3dd4ef7f7c3abe39256","size":2381,"noattachment":false,"key":"/min-indent/-/min-indent-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/min-indent/download/min-indent-1.0.0.tgz"},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/min-indent-1.0.0.tgz_1509073979689_0.7262920024804771"},"directories":{},"publish_time":1509073979773,"_hasShrinkwrap":false,"_cnpm_publish_time":1509073979773}},"readme":"# min-indent [![Build Status](https://travis-ci.org/thejameskyle/min-indent.svg?branch=master)](https://travis-ci.org/thejameskyle/min-indent)\n\n> Get the shortest leading whitespace from lines in a string\n\nThe line with the least number of leading whitespace, ignoring empty lines, determines the number.\n\nUseful for removing redundant indentation.\n\n\n## Install\n\n```\n$ npm install --save min-indent\n```\n\n\n## Usage\n\n```js\nconst minIndent = require('min-indent');\n\nconst str = '\\tunicorn\\n\\t\\tcake';\n/*\n\tunicorn\n\t\tcake\n*/\n\nminIndent(str); // 1\n```\n\n\n## Related\n\n- [strip-indent](https://github.com/sindresorhus/strip-indent) - Strip leading whitespace from each line in a string\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\n\n## License\n\nMIT © [James Kyle](https://thejameskyle.com)\n","_attachments":{},"homepage":"https://github.com/thejameskyle/min-indent#readme","bugs":{"url":"https://github.com/thejameskyle/min-indent/issues"},"license":"MIT"}