-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
46 lines (46 loc) · 2.25 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
{
"name": "lpad",
"version": "0.1.0",
"description": "Left pad each line in a string or stdout/stderr",
"keywords": [
"pad",
"indent",
"cli",
"format",
"string"
],
"homepage": "https://github.com/sindresorhus/lpad",
"bugs": {
"url": "https://github.com/sindresorhus/lpad/issues"
},
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "http://sindresorhus.com"
},
"main": "lpad.js",
"repository": {
"type": "git",
"url": "git://github.com/sindresorhus/lpad.git"
},
"scripts": {
"test": "mocha test-*.js"
},
"devDependencies": {
"mocha": "~1.8.2"
},
"engines": {
"node": ">=0.8.0"
},
"licenses": [
{
"type": "MIT"
}
],
"readme": "# lpad [![Build Status](https://secure.travis-ci.org/sindresorhus/lpad.png?branch=master)](http://travis-ci.org/sindresorhus/lpad)\n\nLeft pad each line in a string or stdout/stderr.\n\nThe stdout/stderr padding is especially useful in CLI tools when you don't directly control the output.\n\n\n![screenshot](screenshot.png)\n\n\n## Getting started\n\nInstall: `npm install lpad`\n\n\n## Documentation\n\n\n### lpad(string, pad)\n\nPads each line in a string with the supplied pad string.\n\n#### Example\n\n```js\nvar lpad = require('lpad');\nvar str = 'foo\\nbar';\n\nconsole.log(str);\n/*\nfoo\nbar\n*/\n\nconsole.log(lpad(str, ' '));\n/*\n foo\n bar\n*/\n```\n\n### lpad.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#### Example\n\n```js\nvar lpad = require('lpad');\nvar str = 'foo\\nbar';\n\nlpad.stdout(' '); // start padding\n\nconsole.log(str);\n/*\n foo\n bar\n*/\n\nlpad.stdout(); // end padding\n\nconsole.log(str);\n/*\nfoo\nbar\n*/\n```\n\n### lpad.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 License](http://en.wikipedia.org/wiki/MIT_License)\n(c) [Sindre Sorhus](http://sindresorhus.com)\n",
"readmeFilename": "readme.md",
"_id": "lpad@0.1.0",
"_shasum": "e4c60c29139321c5970de493b496ae0d774cd2a7",
"_from": "lpad@~0.1.0",
"_resolved": "https://registry.npmjs.org/lpad/-/lpad-0.1.0.tgz"
}