{"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":"kevinmartensson@gmail.com"}],"dist":{"shasum":"27fa786bcb695fc434ea1500723eb8d0bdc82bf4","tarball":"http://registry-npm.ywwl.com/lpad-align/download/lpad-align-1.1.0.tgz","integrity":"sha512-0ahI3HLfYWInGcRl5JBq+Z5Urifuwn4uaQ1ScMugt0KdVzbqlJhYtFBbcdbcMwXQi6PgBrHchVLZHRys4ikdqw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDH25SG5WPMM6Oqv0f9tcF/WXcI9B2v7zDdHYcNs6VFPAiA7vbA5fOr/v8NpjM4FolqNJ+tYbiSjDRf3m5dZVlka+A=="}],"size":1893,"noattachment":false,"key":"/lpad-align/-/lpad-align-1.1.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":1437246730424,"_cnpm_publish_time":1437246730424,"dist-tags":{"latest":"3.0.0"}}