{"name":"lpad","version":"2.0.1","description":"Left pad each line in a string","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/lpad"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["pad","indent","format","string","str"],"devDependencies":{"mocha":"*"},"gitHead":"5e7281893989cb00f3dbab162ca00a1a0ec7f742","bugs":{"url":"https://github.com/sindresorhus/lpad/issues"},"homepage":"https://github.com/sindresorhus/lpad","_id":"lpad@2.0.1","_shasum":"28316b4e7b2015f511f6591459afc0e5944008ad","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"28316b4e7b2015f511f6591459afc0e5944008ad","tarball":"http://registry-npm.ywwl.com/lpad/download/lpad-2.0.1.tgz","integrity":"sha512-ljBHxlzjB2oXVfInRhzPrCTzK9tfAAruEZFi1MZ0Ar+rsb3G9PMAZ1gv+2e91Z5+zayboMSS4m6omc+JNM/p5A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBBuunTHbeyRLVtrgiq6bT2tSsY3ogshXuR9aq19xTetAiEA23m3SFmP4Hy0KZ5Dod2lYg7rp1Cm+X940SYKEwxpK7w="}],"size":1471,"noattachment":false,"key":"/lpad/-/lpad-2.0.1.tgz"},"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":1434361441592,"_cnpm_publish_time":1434361441592,"dist-tags":{"latest":"3.0.0"}}