-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
52 lines (52 loc) · 2.03 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
{
"name": "pad-stdio",
"version": "0.1.1",
"description": "Pad stdout and stderr",
"license": "MIT",
"repository": {
"type": "git",
"url": "git://github.com/sindresorhus/pad-stdio"
},
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "http://sindresorhus.com"
},
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"test": "mocha"
},
"files": [
"index.js"
],
"keywords": [
"pad",
"indent",
"cli",
"format",
"string",
"stdio",
"stdout",
"stderr"
],
"dependencies": {
"lpad": "^0.2.0"
},
"devDependencies": {
"mocha": "*"
},
"readme": "# pad-stdio [![Build Status](https://travis-ci.org/sindresorhus/pad-stdio.png?branch=master)](https://travis-ci.org/sindresorhus/pad-stdio)\n\n> Pad stdout and stderr\n\nEspecially useful with CLI tools when you don't directly control the output.\n\n![](screenshot.png)\n\n\n## Install\n\n```bash\n$ npm install --save pad-stdio\n```\n\n\n## Example\n\n```js\nvar padStdio = require('pad-stdio');\n\npadStdio.stdout(' '); // start padding\nconsole.log('foo');\npadStdio.stdout(' ');\nconsole.log('bar');\npadStdio.stdout(); // end padding\nconsole.log('baz');\n\n/*\n foo\n bar\nbaz\n*/\n```\n\n## API\n\n### padStdio.stdout(pad)\n\nPads each line of `process.stdout` with the supplied pad string until the method is called again with no arguments.\n\n### padStdio.stderr(pad)\n\nPads each line of `process.stderr` with the supplied pad string until the method is called again with no arguments.\n\n\n## License\n\n[MIT](http://opensource.org/licenses/MIT) © [Sindre Sorhus](http://sindresorhus.com)\n",
"readmeFilename": "readme.md",
"bugs": {
"url": "https://github.com/sindresorhus/pad-stdio/issues"
},
"homepage": "https://github.com/sindresorhus/pad-stdio",
"_id": "pad-stdio@0.1.1",
"dist": {
"shasum": "c7e85f4b24b6f8d6dee2f35c204f2d30619d5087"
},
"_from": "pad-stdio@^0.1.0",
"_resolved": "https://registry.npmjs.org/pad-stdio/-/pad-stdio-0.1.1.tgz"
}