{"_id":"lpad-align","_rev":"385265","name":"lpad-align","description":"Left pad a string to align with the longest string in an array","dist-tags":{"latest":"3.0.0"},"maintainers":[{"name":"kevva","email":""}],"time":{"modified":"2021-08-04T03:10:56.000Z","created":"2014-10-15T12:00:24.499Z","3.0.0":"2021-07-05T08:09:06.540Z","2.0.0":"2017-05-22T15:51:08.182Z","1.1.2":"2017-05-22T15:44:12.665Z","1.1.1":"2017-05-21T20:26:02.023Z","1.1.0":"2015-07-18T19:12:10.424Z","1.0.3":"2015-02-26T12:30:02.534Z","1.0.2":"2014-10-24T13:50:19.669Z","1.0.1":"2014-10-23T05:51:02.357Z","1.0.0":"2014-10-15T12:00:24.499Z"},"users":{},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"repository":{"type":"git","url":"git+https://github.com/kevva/lpad-align.git"},"versions":{"3.0.0":{"name":"lpad-align","version":"3.0.0","description":"Left pad a string to align with the longest string in an array","license":"MIT","repository":{"type":"git","url":"git+https://github.com/kevva/lpad-align.git"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"bin":{"lpad-align":"cli.js"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"keywords":["align","indent","lpad"],"dependencies":{"get-stdin":"^5.0.1","indent-string":"^3.0.0","longest":"^2.0.0","meow":"^9.0.0"},"devDependencies":{"ava":"*","xo":"^0.39.1"},"gitHead":"467a1b7668e3d3586651fde11d0362e07fb40aff","bugs":{"url":"https://github.com/kevva/lpad-align/issues"},"homepage":"https://github.com/kevva/lpad-align#readme","_id":"lpad-align@3.0.0","_nodeVersion":"16.4.0","_npmVersion":"7.16.0","dist":{"shasum":"2f970e68de09cabf496b2f94461633295bdaf6b0","size":1935,"noattachment":false,"key":"/lpad-align/-/lpad-align-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/lpad-align/download/lpad-align-3.0.0.tgz"},"_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"directories":{},"maintainers":[{"name":"kevva","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lpad-align_3.0.0_1625472546409_0.9041358984737782"},"_hasShrinkwrap":false,"publish_time":1625472546540,"_cnpm_publish_time":1625472546540},"2.0.0":{"name":"lpad-align","version":"2.0.0","description":"Left pad a string to align with the longest string in an array","license":"MIT","repository":{"type":"git","url":"git+https://github.com/kevva/lpad-align.git"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"bin":{"lpad-align":"cli.js"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["cli.js","index.js"],"keywords":["align","indent","lpad"],"dependencies":{"get-stdin":"^5.0.1","indent-string":"^3.0.0","longest":"^2.0.0","meow":"^3.3.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"50e3d0c4e1fef2dc5aeac43492926b473de57370","bugs":{"url":"https://github.com/kevva/lpad-align/issues"},"homepage":"https://github.com/kevva/lpad-align#readme","_id":"lpad-align@2.0.0","_shasum":"ce013b8693370ac72b64bae04d522540dda0619c","_from":".","_npmVersion":"4.6.1","_nodeVersion":"7.8.0","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"dist":{"shasum":"ce013b8693370ac72b64bae04d522540dda0619c","size":2031,"noattachment":false,"key":"/lpad-align/-/lpad-align-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/lpad-align/download/lpad-align-2.0.0.tgz"},"maintainers":[{"name":"kevva","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lpad-align-2.0.0.tgz_1495468267227_0.20346979005262256"},"directories":{},"publish_time":1495468268182,"_hasShrinkwrap":false,"_cnpm_publish_time":1495468268182},"1.1.2":{"name":"lpad-align","version":"1.1.2","description":"Left pad a string to align with the longest string in an array","license":"MIT","repository":{"type":"git","url":"git+https://github.com/kevva/lpad-align.git"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"bin":{"lpad-align":"cli.js"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["cli.js","index.js"],"keywords":["align","indent","lpad"],"dependencies":{"get-stdin":"^4.0.1","indent-string":"^2.1.0","longest":"^1.0.0","meow":"^3.3.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"65df480e63cc05701501ec634bef0ff3b87a2411","bugs":{"url":"https://github.com/kevva/lpad-align/issues"},"homepage":"https://github.com/kevva/lpad-align#readme","_id":"lpad-align@1.1.2","_shasum":"21f600ac1c3095c3c6e497ee67271ee08481fe9e","_from":".","_npmVersion":"4.6.1","_nodeVersion":"7.10.0","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"dist":{"shasum":"21f600ac1c3095c3c6e497ee67271ee08481fe9e","size":2053,"noattachment":false,"key":"/lpad-align/-/lpad-align-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/lpad-align/download/lpad-align-1.1.2.tgz"},"maintainers":[{"name":"kevva","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lpad-align-1.1.2.tgz_1495467851702_0.1335487177129835"},"directories":{},"publish_time":1495467852665,"_hasShrinkwrap":false,"_cnpm_publish_time":1495467852665},"1.1.1":{"name":"lpad-align","version":"1.1.1","description":"Left pad a string to align with the longest string in an array","license":"MIT","repository":{"type":"git","url":"git+https://github.com/kevva/lpad-align.git"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"bin":{"lpad-align":"cli.js"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["cli.js","index.js"],"keywords":["align","indent","lpad"],"dependencies":{"get-stdin":"^5.0.1","indent-string":"^3.0.0","longest":"^2.0.0","lpad":"^2.0.1","meow":"^3.3.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"76d2ec12eddf6f9c6a0b01c7bf30f2718802fbeb","bugs":{"url":"https://github.com/kevva/lpad-align/issues"},"homepage":"https://github.com/kevva/lpad-align#readme","_id":"lpad-align@1.1.1","_shasum":"a179e190eeee2b86460f822566f4f3548a31625f","_from":".","_npmVersion":"4.6.1","_nodeVersion":"7.8.0","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"dist":{"shasum":"a179e190eeee2b86460f822566f4f3548a31625f","size":2031,"noattachment":false,"key":"/lpad-align/-/lpad-align-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/lpad-align/download/lpad-align-1.1.1.tgz"},"maintainers":[{"name":"kevva","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lpad-align-1.1.1.tgz_1495398361058_0.6756020104512572"},"directories":{},"publish_time":1495398362023,"_hasShrinkwrap":false,"_cnpm_publish_time":1495398362023},"1.1.0":{"name":"lpad-align","version":"1.1.0","description":"Left pad a string to align with the longest string in an array","license":"MIT","repository":{"type":"git","url":"git+https://github.com/kevva/lpad-align.git"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"engines":{"node":">=0.10.0"},"bin":{"lpad-align":"cli.js"},"scripts":{"test":"node test.js"},"files":["cli.js","index.js"],"keywords":["align","indent","lpad"],"dependencies":{"get-stdin":"^4.0.1","longest":"^1.0.0","lpad":"^2.0.1","meow":"^3.3.0"},"devDependencies":{"ava":"^0.0.4"},"gitHead":"eaaed9ec8ffcbcca1a280e28fed7a17336bdbed7","bugs":{"url":"https://github.com/kevva/lpad-align/issues"},"homepage":"https://github.com/kevva/lpad-align#readme","_id":"lpad-align@1.1.0","_shasum":"27fa786bcb695fc434ea1500723eb8d0bdc82bf4","_from":".","_npmVersion":"3.1.2","_nodeVersion":"2.3.0","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"maintainers":[{"name":"kevva","email":""}],"dist":{"shasum":"27fa786bcb695fc434ea1500723eb8d0bdc82bf4","size":1893,"noattachment":false,"key":"/lpad-align/-/lpad-align-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/lpad-align/download/lpad-align-1.1.0.tgz"},"directories":{},"publish_time":1437246730424,"_cnpm_publish_time":1437246730424,"_hasShrinkwrap":false},"1.0.3":{"name":"lpad-align","version":"1.0.3","description":"Left pad a string to align with the longest string in an array","license":"MIT","repository":{"type":"git","url":"https://github.com/kevva/lpad-align"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["align","indent","lpad"],"dependencies":{"longest":"^1.0.0","lpad":"^1.0.0"},"devDependencies":{"ava":"^0.0.4"},"gitHead":"d754be1b8727d5b39798afe7c4c8d3c1debe7792","bugs":{"url":"https://github.com/kevva/lpad-align/issues"},"homepage":"https://github.com/kevva/lpad-align","_id":"lpad-align@1.0.3","_shasum":"33a8d0bf721ab2a6abd172237167b6b578bbc39d","_from":".","_npmVersion":"2.5.1","_nodeVersion":"1.3.0","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"maintainers":[{"name":"kevva","email":""}],"dist":{"shasum":"33a8d0bf721ab2a6abd172237167b6b578bbc39d","size":1579,"noattachment":false,"key":"/lpad-align/-/lpad-align-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/lpad-align/download/lpad-align-1.0.3.tgz"},"directories":{},"publish_time":1424953802534,"_cnpm_publish_time":1424953802534,"_hasShrinkwrap":false},"1.0.2":{"name":"lpad-align","version":"1.0.2","description":"Left pad a string to align with the longest string in an array","license":"MIT","repository":{"type":"git","url":"https://github.com/kevva/lpad-align"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["align","indent","lpad"],"dependencies":{"longest":"^0.2.1","lpad":"^1.0.0"},"devDependencies":{"ava":"^0.0.4"},"gitHead":"57836e8b5541a12bb18ed9db13caaf2eb6d7bb77","bugs":{"url":"https://github.com/kevva/lpad-align/issues"},"homepage":"https://github.com/kevva/lpad-align","_id":"lpad-align@1.0.2","_shasum":"4414640c6fb45ffaf36b74d5741101077cd74328","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"maintainers":[{"name":"kevva","email":""}],"dist":{"shasum":"4414640c6fb45ffaf36b74d5741101077cd74328","size":954,"noattachment":false,"key":"/lpad-align/-/lpad-align-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/lpad-align/download/lpad-align-1.0.2.tgz"},"directories":{},"publish_time":1414158619669,"_cnpm_publish_time":1414158619669,"_hasShrinkwrap":false},"1.0.1":{"name":"lpad-align","version":"1.0.1","description":"Left pad a string to align with the longest string in an array","license":"MIT","repository":{"type":"git","url":"https://github.com/kevva/lpad-align"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["align","indent","lpad"],"dependencies":{"longest":"^0.2.1","lpad":"^1.0.0"},"devDependencies":{"ava":"^0.0.4"},"gitHead":"0dcd336a8f04ed2b015d1f008ebe55cf0ad42cbb","bugs":{"url":"https://github.com/kevva/lpad-align/issues"},"homepage":"https://github.com/kevva/lpad-align","_id":"lpad-align@1.0.1","_shasum":"87d749f58a902f8e903fec6e0cb237ca57a36fb0","_from":".","_npmVersion":"2.1.5","_nodeVersion":"0.10.32","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"maintainers":[{"name":"kevva","email":""}],"dist":{"shasum":"87d749f58a902f8e903fec6e0cb237ca57a36fb0","size":908,"noattachment":false,"key":"/lpad-align/-/lpad-align-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/lpad-align/download/lpad-align-1.0.1.tgz"},"directories":{},"publish_time":1414043462357,"_cnpm_publish_time":1414043462357,"_hasShrinkwrap":false},"1.0.0":{"name":"lpad-align","version":"1.0.0","description":"Left pad a string to align with the longest string in an array","license":"MIT","repository":{"type":"git","url":"https://github.com/kevva/lpad-align"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":[],"dependencies":{"lpad":"^1.0.0","max-component":"^1.0.0"},"devDependencies":{"ava":"^0.0.4"},"gitHead":"bc54927a3ee68ef06370b45322d94c8035ee01f7","bugs":{"url":"https://github.com/kevva/lpad-align/issues"},"homepage":"https://github.com/kevva/lpad-align","_id":"lpad-align@1.0.0","_shasum":"89dfcaa2b6e534e266df5d3f4f6eb4a2bdab084a","_from":".","_npmVersion":"2.1.3","_nodeVersion":"0.10.32","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"maintainers":[{"name":"kevva","email":""}],"dist":{"shasum":"89dfcaa2b6e534e266df5d3f4f6eb4a2bdab084a","size":905,"noattachment":false,"key":"/lpad-align/-/lpad-align-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/lpad-align/download/lpad-align-1.0.0.tgz"},"directories":{},"publish_time":1413374424499,"_cnpm_publish_time":1413374424499,"_hasShrinkwrap":false}},"readme":"# lpad-align [![Build Status](https://travis-ci.org/kevva/lpad-align.svg?branch=master)](https://travis-ci.org/kevva/lpad-align)\n\n> Left pad a string to align with the longest string in an array\n\n## Install\n\n```\n$ npm install lpad-align\n```\n\n## Usage\n\n```js\nconst lpadAlign = require('lpad-align');\n\nconst words = [\n\t'foo',\n\t'foobar',\n\t'foobarcat'\n];\n\nfor (const x of words) {\n\tconsole.log(lpadAlign(x, words, 4));\n}\n\n/*\n\t\t  foo\n\t   foobar\n\tfoobarcat\n */\n```\n\n## API\n\n### lpadAlign(string, array, indent)\n\n#### string\n\nType: `string`\n\nString that will be padded.\n\n#### array\n\nType: `Array`\n\nArray to align against.\n\n#### indent\n\nType: `number`\\\nDefault: `4`\n\nIndentation to prepend the string with.\n\n## CLI\n\n```\n$ npm install --global lpad-align\n```\n\n```\n  Usage\n    $ cat <file> | lpad-align\n\n  Example\n    $ cat unicorn.txt | lpad-align\n          foo\n       foobar\n    foobarcat\n```\n","_attachments":{},"homepage":"https://github.com/kevva/lpad-align#readme","bugs":{"url":"https://github.com/kevva/lpad-align/issues"},"license":"MIT"}