{"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","tarball":"http://registry-npm.ywwl.com/lpad-align/download/lpad-align-1.1.1.tgz","integrity":"sha512-4CaC1DI2bb5NmHkuG+TPJPfbvd7OPq+PJrRWAiP764cCEbvJgnwSSaGbj8UnafZlQ4H5O1I7N5T1buhMH/eQVg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFuiz8A5/teygkUj/QBAf2U7prSalJHyHiq0mmTQ8hTUAiBxYqC8W3h8/FIypLRrfB/kop8haGPIooM0KMpa0qDJOQ=="}],"size":2031,"noattachment":false,"key":"/lpad-align/-/lpad-align-1.1.1.tgz"},"maintainers":[{"name":"kevva","email":"kevinmartensson@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lpad-align-1.1.1.tgz_1495398361058_0.6756020104512572"},"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":1495398362023,"_cnpm_publish_time":1495398362023,"dist-tags":{"latest":"3.0.0"}}