| 1 |
{ |
| 2 |
"_id": "min-indent", |
| 3 |
"_rev": "2-8a4e5616fc433d34c338003ad0c3ee7c", |
| 4 |
"name": "min-indent", |
| 5 |
"description": "Get the shortest leading whitespace from lines in a string", |
| 6 |
"dist-tags": { |
| 7 |
"latest": "1.0.1" |
| 8 |
}, |
| 9 |
"versions": { |
| 10 |
"1.0.0": { |
| 11 |
"name": "min-indent", |
| 12 |
"version": "1.0.0", |
| 13 |
"description": "Get the shortest leading whitespace from lines in a string", |
| 14 |
"main": "index.js", |
| 15 |
"license": "MIT", |
| 16 |
"repository": { |
| 17 |
"type": "git", |
| 18 |
"url": "git+https://github.com/thejameskyle/min-indent.git" |
| 19 |
}, |
| 20 |
"author": { |
| 21 |
"name": "James Kyle", |
| 22 |
"email": "[email protected]", |
| 23 |
"url": "thejameskyle.com" |
| 24 |
}, |
| 25 |
"engines": { |
| 26 |
"node": ">=4" |
| 27 |
}, |
| 28 |
"scripts": { |
| 29 |
"test": "xo && ava" |
| 30 |
}, |
| 31 |
"files": [ |
| 32 |
"index.js" |
| 33 |
], |
| 34 |
"keywords": [ |
| 35 |
"indent", |
| 36 |
"indentation", |
| 37 |
"normalize", |
| 38 |
"whitespace", |
| 39 |
"space", |
| 40 |
"tab", |
| 41 |
"string", |
| 42 |
"str", |
| 43 |
"min", |
| 44 |
"minimum" |
| 45 |
], |
| 46 |
"devDependencies": { |
| 47 |
"ava": "*", |
| 48 |
"xo": "*" |
| 49 |
}, |
| 50 |
"gitHead": "867a9060c96c16997b349b565d7ebcab142967d7", |
| 51 |
"bugs": { |
| 52 |
"url": "https://github.com/thejameskyle/min-indent/issues" |
| 53 |
}, |
| 54 |
"homepage": "https://github.com/thejameskyle/min-indent#readme", |
| 55 |
"_id": "[email protected]", |
| 56 |
"_shasum": "cfc45c37e9ec0d8f0a0ec3dd4ef7f7c3abe39256", |
| 57 |
"_from": ".", |
| 58 |
"_npmVersion": "3.10.8", |
| 59 |
"_nodeVersion": "6.9.1", |
| 60 |
"_npmUser": { |
| 61 |
"name": "thejameskyle", |
| 62 |
"email": "[email protected]" |
| 63 |
}, |
| 64 |
"dist": { |
| 65 |
"shasum": "cfc45c37e9ec0d8f0a0ec3dd4ef7f7c3abe39256", |
| 66 |
"tarball": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.0.tgz" |
| 67 |
}, |
| 68 |
"maintainers": [ |
| 69 |
{ |
| 70 |
"name": "thejameskyle", |
| 71 |
"email": "[email protected]" |
| 72 |
} |
| 73 |
], |
| 74 |
"_npmOperationalInternal": { |
| 75 |
"host": "s3://npm-registry-packages", |
| 76 |
"tmp": "tmp/min-indent-1.0.0.tgz_1509073979689_0.7262920024804771" |
| 77 |
}, |
| 78 |
"directories": {} |
| 79 |
}, |
| 80 |
"1.0.1": { |
| 81 |
"name": "min-indent", |
| 82 |
"version": "1.0.1", |
| 83 |
"description": "Get the shortest leading whitespace from lines in a string", |
| 84 |
"main": "index.js", |
| 85 |
"license": "MIT", |
| 86 |
"repository": { |
| 87 |
"type": "git", |
| 88 |
"url": "git+https://github.com/thejameskyle/min-indent.git" |
| 89 |
}, |
| 90 |
"author": { |
| 91 |
"name": "James Kyle", |
| 92 |
"email": "[email protected]", |
| 93 |
"url": "thejameskyle.com" |
| 94 |
}, |
| 95 |
"engines": { |
| 96 |
"node": ">=4" |
| 97 |
}, |
| 98 |
"scripts": { |
| 99 |
"test": "xo && ava" |
| 100 |
}, |
| 101 |
"keywords": [ |
| 102 |
"indent", |
| 103 |
"indentation", |
| 104 |
"normalize", |
| 105 |
"whitespace", |
| 106 |
"space", |
| 107 |
"tab", |
| 108 |
"string", |
| 109 |
"str", |
| 110 |
"min", |
| 111 |
"minimum" |
| 112 |
], |
| 113 |
"devDependencies": { |
| 114 |
"ava": "*", |
| 115 |
"xo": "*" |
| 116 |
}, |
| 117 |
"gitHead": "f0d5c6c309c964b67c41cd8bf28e6f58058fdc64", |
| 118 |
"bugs": { |
| 119 |
"url": "https://github.com/thejameskyle/min-indent/issues" |
| 120 |
}, |
| 121 |
"homepage": "https://github.com/thejameskyle/min-indent#readme", |
| 122 |
"_id": "[email protected]", |
| 123 |
"_nodeVersion": "14.0.0", |
| 124 |
"_npmVersion": "6.14.4", |
| 125 |
"dist": { |
| 126 |
"integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==", |
| 127 |
"shasum": "a63f681673b30571fbe8bc25686ae746eefa9869", |
| 128 |
"tarball": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", |
| 129 |
"fileCount": 4, |
| 130 |
"unpackedSize": 2969, |
| 131 |
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe0A7mCRA9TVsSAnZWagAA5B4QAIGwDtT7O6jlUY/eBM0f\nbYP9uHambmC7kiAH5rGlYBsH/rMZ0h7CWtUFxj25zOTqPuaQrgtkDaOa9QVg\n6fW46LXzmSxTqTM7SbcNb1QEydwazsE2lCC1PzaJoL50yM/u6yt8OE+RIKTz\nol/RoAy03TI8RzEu5Q6ayGJ7n2IXUxSXLyTBRMI3RFbKcyGTYAw362JqDoZs\nyLxMgQKcroV+5ay3Wy0/1qx0Jdqvdc//q4EbhQlcfyqtrA6Q0qy292HH/r/y\naLaetfNqKeJvVKRJFwMaO45IVERvKACmFy5CW7G8gzRbag1l1IDpke98vcac\nx0OI8w/OKUbhFG79586b5KFKhdm/07NW7afraoo0wq3y97Wcf6brbGD/VhZu\nF0Rbav0pGraa4Yg0c44f4vSeiYj26LKPmIvDbMrlrX96IMvei2eOEVNpoCkK\nbHK5FOWZ7/MD8qmy3pfiLeZPBDJ0l6TnpYRXZ0vdb/qWcNy3S/YtGXNeuDyv\nk9uiWvQSMr50XE8yU9sMhtHlJ6d9bv6eV1vZln8aa9pQoUTZb2Gx+87/K4wm\n81iGUpymLM3VfUgYYk9D15qiHgbFOBunyRE97+Vme+Frx7sEvcyi0b+C+o+d\nuSndXuUUp0/GlkRHUVzDR4z8QgAgb8hPeWk3mQS2f1iIrIOHlH5eBV5BJ8sn\nhDSz\r\n=cJh+\r\n-----END PGP SIGNATURE-----\r\n" |
| 132 |
}, |
| 133 |
"maintainers": [ |
| 134 |
{ |
| 135 |
"name": "sindresorhus", |
| 136 |
"email": "[email protected]" |
| 137 |
}, |
| 138 |
{ |
| 139 |
"name": "thejameskyle", |
| 140 |
"email": "[email protected]" |
| 141 |
} |
| 142 |
], |
| 143 |
"_npmUser": { |
| 144 |
"name": "thejameskyle", |
| 145 |
"email": "[email protected]" |
| 146 |
}, |
| 147 |
"directories": {}, |
| 148 |
"_npmOperationalInternal": { |
| 149 |
"host": "s3://npm-registry-packages", |
| 150 |
"tmp": "tmp/min-indent_1.0.1_1590693605903_0.7266404794655938" |
| 151 |
}, |
| 152 |
"_hasShrinkwrap": false |
| 153 |
} |
| 154 |
}, |
| 155 |
"readme": "# min-indent [](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", |
| 156 |
"maintainers": [ |
| 157 |
{ |
| 158 |
"name": "sindresorhus", |
| 159 |
"email": "[email protected]" |
| 160 |
}, |
| 161 |
{ |
| 162 |
"name": "thejameskyle", |
| 163 |
"email": "[email protected]" |
| 164 |
} |
| 165 |
], |
| 166 |
"time": { |
| 167 |
"modified": "2020-05-28T19:20:09.507Z", |
| 168 |
"created": "2017-10-27T03:12:59.773Z", |
| 169 |
"1.0.0": "2017-10-27T03:12:59.773Z", |
| 170 |
"1.0.1": "2020-05-28T19:20:06.032Z" |
| 171 |
}, |
| 172 |
"homepage": "https://github.com/thejameskyle/min-indent#readme", |
| 173 |
"keywords": [ |
| 174 |
"indent", |
| 175 |
"indentation", |
| 176 |
"normalize", |
| 177 |
"whitespace", |
| 178 |
"space", |
| 179 |
"tab", |
| 180 |
"string", |
| 181 |
"str", |
| 182 |
"min", |
| 183 |
"minimum" |
| 184 |
], |
| 185 |
"repository": { |
| 186 |
"type": "git", |
| 187 |
"url": "git+https://github.com/thejameskyle/min-indent.git" |
| 188 |
}, |
| 189 |
"author": { |
| 190 |
"name": "James Kyle", |
| 191 |
"email": "[email protected]", |
| 192 |
"url": "thejameskyle.com" |
| 193 |
}, |
| 194 |
"bugs": { |
| 195 |
"url": "https://github.com/thejameskyle/min-indent/issues" |
| 196 |
}, |
| 197 |
"license": "MIT", |
| 198 |
"readmeFilename": "readme.md" |
| 199 |
} |