{"name":"lpad","version":"1.0.0","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":"*"},"gitHead":"aab258d73dd0a810acba97a8667d163fa6191a62","bugs":{"url":"https://github.com/sindresorhus/lpad/issues"},"homepage":"https://github.com/sindresorhus/lpad","_id":"lpad@1.0.0","_shasum":"a231dd2c129a4eebc7335b324c147ede3abfb6da","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"a231dd2c129a4eebc7335b324c147ede3abfb6da","tarball":"http://registry-npm.ywwl.com/lpad/download/lpad-1.0.0.tgz","integrity":"sha512-g5YIAkT1BD0SVx88e2oJkGXrg90r7RqA/zLwH6KfwF6qOw77NSBUpYfE7HIlr5tKyhz8Kmm9A8nRNesCGjFICw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCbiFgQ+i2+gkcl3aaugS+lzY4WlPGtsWtHQ405Wj2QEQIhALNlF4jYeXG2ztTBmzJoohUf/rAS2uXzNLYvb80AyAbQ"}],"size":784,"noattachment":false,"key":"/lpad/-/lpad-1.0.0.tgz"},"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":1407924666424,"_cnpm_publish_time":1407924666424,"dist-tags":{"latest":"3.0.0"}}