-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
55 lines (55 loc) · 2.46 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
"name": "indent-string",
"version": "1.2.1",
"description": "Indent each line in a string",
"license": "MIT",
"repository": {
"type": "git",
"url": "git://github.com/sindresorhus/indent-string"
},
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "http://sindresorhus.com"
},
"bin": {
"indent-string": "cli.js"
},
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"test": "mocha"
},
"files": [
"index.js",
"cli.js"
],
"keywords": [
"cli",
"bin",
"indent",
"string",
"str",
"pad",
"line"
],
"dependencies": {
"get-stdin": "^4.0.1",
"minimist": "^1.1.0",
"repeating": "^1.1.0"
},
"devDependencies": {
"mocha": "*"
},
"readme": "# indent-string [![Build Status](https://travis-ci.org/sindresorhus/indent-string.svg?branch=master)](https://travis-ci.org/sindresorhus/indent-string)\n\n> Indent each line in a string\n\n\n## Install\n\n```sh\n$ npm install --save indent-string\n```\n\n\n## Usage\n\n```js\nvar indentString = require('indent-string');\n\nindentString('Unicorns\\nRainbows', '♥', 4);\n//=> ♥♥♥♥Unicorns\n//=> ♥♥♥♥Rainbows\n```\n\n\n## API\n\n### indentString(string, indent, count)\n\n#### string\n\n**Required** \nType: `string`\n\nThe string you want to indent.\n\n#### indent\n\n**Required** \nType: `string`\n\nThe string to use for the indent.\n\n#### count\n\nType: `number` \nDefault: `1`\n\nHow many times you want `indent` repeated.\n\n\n## CLI\n\n```sh\n$ npm install --global indent-string\n```\n\n```sh\n$ indent-string --help\n\n Usage\n indent-string <string> [--indent <string>] [--count <number>]\n cat file.txt | indent-string > indented-file.txt\n\n Example\n indent-string \"$(printf 'Unicorns\\nRainbows\\n')\" --indent ♥ --count 4\n ♥♥♥♥Unicorns\n ♥♥♥♥Rainbows\n```\n\n\n## Related\n\n- [strip-indent](https://github.com/sindresorhus/strip-indent) - Strip leading whitespace from every line in a string\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n",
"readmeFilename": "readme.md",
"bugs": {
"url": "https://github.com/sindresorhus/indent-string/issues"
},
"homepage": "https://github.com/sindresorhus/indent-string",
"_id": "indent-string@1.2.1",
"_shasum": "294c5930792f8bb5b14462a4aa425b94f07d3a56",
"_from": "indent-string@>=1.1.0 <2.0.0",
"_resolved": "https://registry.npmjs.org/indent-string/-/indent-string-1.2.1.tgz"
}