{"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","tarball":"http://registry-npm.ywwl.com/lpad-align/download/lpad-align-2.0.0.tgz","integrity":"sha512-wPcmGAMDhfFGCcA0t6TiH3IrjRV7n0ZHqckl/EdDw78WXLUYR/B9E+0fmyEQ9CiQvgrLfHdIR204MdyyCtgl3g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCGFIAwFzsqI3p8q7kqtWY4l9kU+gHwWhXdXo1xQDJcOQIhAILB2yDd18xl4ot0fknSOsSKLROO0NX7QPRfVKoy47Yn"}],"size":2031,"noattachment":false,"key":"/lpad-align/-/lpad-align-2.0.0.tgz"},"maintainers":[{"name":"kevva","email":"kevinmartensson@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lpad-align-2.0.0.tgz_1495468267227_0.20346979005262256"},"directories":{},"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","publish_time":1495468268182,"_cnpm_publish_time":1495468268182,"dist-tags":{"latest":"3.0.0"}}