{"name":"lpad","version":"0.2.1","description":"Left pad each line in a string","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/lpad"},"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","format","string","str"],"devDependencies":{"mocha":"*"},"bugs":{"url":"https://github.com/sindresorhus/lpad/issues"},"homepage":"https://github.com/sindresorhus/lpad","_id":"lpad@0.2.1","dist":{"shasum":"110587a55818485ad6a019625e3927ca4c52c3ee","tarball":"http://registry-npm.ywwl.com/lpad/download/lpad-0.2.1.tgz","integrity":"sha512-BHrgJbEHulCNbkoO1h+Pq1ZxwuKiq4uK3qvJn8WqTdleSQnT60vkxPU2sJc73YhODY/O84gdxqshmHm0Qrv0Kw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDyt8fs2jkdVdi3J3wpH/v0Ak3PSfioSkpHMfB1h37JYAIhALPzDbPjSCF6OBuwQyC58/nMHDTQiBhhtYQb//5xwcRm"}],"size":801,"noattachment":false,"key":"/lpad/-/lpad-0.2.1.tgz"},"_from":".","_npmVersion":"1.4.4","_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":1394148612024,"_cnpm_publish_time":1394148612024,"dist-tags":{"latest":"3.0.0"}}