{"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":"kevinmartensson@gmail.com"}],"dist":{"shasum":"89dfcaa2b6e534e266df5d3f4f6eb4a2bdab084a","tarball":"http://registry-npm.ywwl.com/lpad-align/download/lpad-align-1.0.0.tgz","integrity":"sha512-SDLOf85VBIVvl3Ogd5v2o8M63hR+1J2XDPcR7B7Xzt575IAhrRYrreSDQfdsq8I0zsP91kGK2MpSLlIBiN0kcw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDY3j4MuIytseoaFEo5ijp+rkXs+lyQU2E1y9toAdYFJwIgSf88rs+XlJeTTh+HuU+oLUACJ5SXRYyjgKj+KrScszg="}],"size":905,"noattachment":false,"key":"/lpad-align/-/lpad-align-1.0.0.tgz"},"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":1413374424499,"_cnpm_publish_time":1413374424499,"dist-tags":{"latest":"3.0.0"}}