{"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":"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"}],"_id":"lpad@0.1.0","dist":{"shasum":"e4c60c29139321c5970de493b496ae0d774cd2a7","tarball":"http://registry-npm.ywwl.com/lpad/download/lpad-0.1.0.tgz","integrity":"sha512-Iuj1jLmrxOseShxLayj8ODB1rmAncUDwR1KCgOMGLpAxC0a3qqEo/xDeJclC7Gzi34pZUYGBLFJ4zTNjV7WWYQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCOXgnzb5zNCHiNHBl6+QAMwOU7O0d2e/qtSXCiUdETfQIhAJUOyibW41i5bP0Mycw88FgHUVdqPqrfRfLU/RXnG/WZ"}],"size":1157,"noattachment":false,"key":"/lpad/-/lpad-0.1.0.tgz"},"_from":".","_npmVersion":"1.2.17","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"readme":"# lpad\n\n> Left-pad each line in a string\n\n![](screenshot.png)\n\n## Install\n\n```\n$ npm install lpad\n```\n\n## Usage\n\n```js\nimport leftPad from 'lpad';\n\nconst string = 'foo\\nbar';\n/*\nfoo\nbar\n*/\n\nlpad(string, '    ');\n/*\n    foo\n    bar\n*/\n```\n\n## API\n\n### lpad(string, padString)\n\nPads each line in a string with the supplied string.\n\n#### string\n\nType: `string`\n\nString that will be padded.\n\n#### padString\n\nType: `string`\n\nString that will be prepended to each line.\n","publish_time":1365270338766,"_cnpm_publish_time":1365270338766,"dist-tags":{"latest":"3.0.0"}}