{"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","tarball":"http://registry-npm.ywwl.com/lpad-align/download/lpad-align-1.1.2.tgz","integrity":"sha512-MMIcFmmR9zlGZtBcFOows6c2COMekHCIFJz3ew/rRpKZ1wR4mXDPzvcVqLarux8M33X4TPSq2Jdw8WJj0q0KbQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB1QCOqy4bIETrgZO7azKVvg2S5AnqkbEb0wK5t7Kw93AiEAy7CF4ci5cKtqn+Gi/namox9LV2YeWGXUkJ8uFKfvIkI="}],"size":2053,"noattachment":false,"key":"/lpad-align/-/lpad-align-1.1.2.tgz"},"maintainers":[{"name":"kevva","email":"kevinmartensson@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lpad-align-1.1.2.tgz_1495467851702_0.1335487177129835"},"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":1495467852665,"_cnpm_publish_time":1495467852665,"dist-tags":{"latest":"3.0.0"}}