{"_id":"lpad","_rev":"68347","name":"lpad","description":"Left-pad each line in a string","dist-tags":{"latest":"3.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2021-06-03T10:22:40.000Z","created":"2013-04-06T17:45:38.766Z","3.0.0":"2021-04-08T17:59:05.558Z","2.0.1":"2015-06-15T09:44:01.592Z","2.0.0":"2015-04-29T19:27:06.737Z","1.0.0":"2014-08-13T10:11:06.424Z","0.2.1":"2014-03-06T23:30:12.024Z","0.2.0":"2014-03-06T23:26:22.172Z","0.1.0":"2013-04-06T17:45:38.766Z"},"users":{"passy":true},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/lpad.git"},"versions":{"3.0.0":{"name":"lpad","version":"3.0.0","description":"Left-pad each line in a string","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/lpad.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava"},"keywords":["pad","indent","format","string","padding"],"dependencies":{"split-lines":"^3.0.0"},"devDependencies":{"ava":"3.15.0","xo":"0.38.2"},"gitHead":"533ff4d70ea491ae72bfd508df109613297dedab","bugs":{"url":"https://github.com/sindresorhus/lpad/issues"},"homepage":"https://github.com/sindresorhus/lpad#readme","_id":"lpad@3.0.0","_nodeVersion":"15.12.0","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"d100262a970106a9c3679c6508535856c327abb7","size":1539,"noattachment":false,"key":"/lpad/-/lpad-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/lpad/download/lpad-3.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lpad_3.0.0_1617904745451_0.7374215342050279"},"_hasShrinkwrap":false,"publish_time":1617904745558,"_cnpm_publish_time":1617904745558},"2.0.1":{"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","size":1471,"noattachment":false,"key":"/lpad/-/lpad-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/lpad/download/lpad-2.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1434361441592,"_cnpm_publish_time":1434361441592,"_hasShrinkwrap":false},"2.0.0":{"name":"lpad","version":"2.0.0","description":"Left pad each line in a string","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/lpad.git"},"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":"8e52e736d17953cce96572208322b62d0f4dbdc2","bugs":{"url":"https://github.com/sindresorhus/lpad/issues"},"homepage":"https://github.com/sindresorhus/lpad#readme","_id":"lpad@2.0.0","_shasum":"651a0247560a1b22bd4015bf7df944c0f207689c","_from":".","_npmVersion":"2.8.4","_nodeVersion":"0.12.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"651a0247560a1b22bd4015bf7df944c0f207689c","size":1458,"noattachment":false,"key":"/lpad/-/lpad-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/lpad/download/lpad-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1430335626737,"_cnpm_publish_time":1430335626737,"_hasShrinkwrap":false},"1.0.0":{"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":""}],"dist":{"shasum":"a231dd2c129a4eebc7335b324c147ede3abfb6da","size":784,"noattachment":false,"key":"/lpad/-/lpad-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/lpad/download/lpad-1.0.0.tgz"},"directories":{},"publish_time":1407924666424,"_cnpm_publish_time":1407924666424,"_hasShrinkwrap":false},"0.2.1":{"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","size":801,"noattachment":false,"key":"/lpad/-/lpad-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/lpad/download/lpad-0.2.1.tgz"},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1394148612024,"_cnpm_publish_time":1394148612024,"_hasShrinkwrap":false},"0.2.0":{"name":"lpad","version":"0.2.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":"*"},"bugs":{"url":"https://github.com/sindresorhus/lpad/issues"},"homepage":"https://github.com/sindresorhus/lpad","_id":"lpad@0.2.0","dist":{"shasum":"c997d0eed3df5517b928949b7bcb51be6ee67dca","size":1002,"noattachment":false,"key":"/lpad/-/lpad-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/lpad/download/lpad-0.2.0.tgz"},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1394148382172,"_cnpm_publish_time":1394148382172,"_hasShrinkwrap":false},"0.1.0":{"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"}],"readmeFilename":"readme.md","_id":"lpad@0.1.0","dist":{"shasum":"e4c60c29139321c5970de493b496ae0d774cd2a7","size":1157,"noattachment":false,"key":"/lpad/-/lpad-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/lpad/download/lpad-0.1.0.tgz"},"_from":".","_npmVersion":"1.2.17","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1365270338766,"_cnpm_publish_time":1365270338766,"_hasShrinkwrap":false}},"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","_attachments":{},"homepage":"https://github.com/sindresorhus/lpad#readme","bugs":{"url":"https://github.com/sindresorhus/lpad/issues"},"license":"MIT"}