{"name":"right-pad-values","description":"Right pad the values of a given property for each object in an array. Useful for creating text columns or tables.","version":"0.1.3","homepage":"https://github.com/jonschlinkert/right-pad-values","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/right-pad-values.git"},"bugs":{"url":"https://github.com/jonschlinkert/right-pad-values/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/right-pad-values/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"longest-value":"^0.1.0","pad-right":"^0.1.1"},"devDependencies":{"mocha":"*","should":"*"},"keywords":["align","column","longest","object","pad","right","table","value","values"],"gitHead":"b32798b6ba7f712fe9d52a9fb3fd9fc8f29261c0","_id":"right-pad-values@0.1.3","_shasum":"77e928f0844b46b79d16a25e66c540427c1a9c7b","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"77e928f0844b46b79d16a25e66c540427c1a9c7b","tarball":"http://registry-npm.ywwl.com/right-pad-values/download/right-pad-values-0.1.3.tgz","integrity":"sha512-1fVBHk3Wxxz9pQ2nJR47sh88q2BUbN1M4NqfVstNjZvZz1YTsatSAbWlsQTqMfCE+/srNrWKsAJcHSpQDdh5Fw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAzJP44lMB3tdPTwzGW0E7us5PWdwz3r5+sa+YiZp4cHAiBLmAOIH4BTtBXEqlz8OncOi5fUN7YoU3RAlGO1XGkh+Q=="}],"size":2228,"noattachment":false,"key":"/right-pad-values/-/right-pad-values-0.1.3.tgz"},"directories":{},"readme":"# right-pad-values [![NPM version](https://img.shields.io/npm/v/right-pad-values.svg)](https://www.npmjs.com/package/right-pad-values) [![Build Status](https://img.shields.io/travis/jonschlinkert/right-pad-values.svg)](https://travis-ci.org/jonschlinkert/right-pad-values)\n\n> Right pad the values of a given property for each object in an array. Useful for creating text columns or tables.\n\n- [Install](#install)\n- [Usage](#usage)\n- [API](#api)\n- [Related projects](#related-projects)\n- [Running tests](#running-tests)\n- [Contributing](#contributing)\n- [Author](#author)\n- [License](#license)\n\n_(TOC generated by [verb](https://github.com/verbose/verb) using [markdown-toc](https://github.com/jonschlinkert/markdown-toc))_\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm i right-pad-values --save\n```\n\n## Usage\n\n**object**\n\n```js\npad({\n  a: 'b', \n  c: 'dddddd', \n  e: 'fff', \n  g: 'hhhhh'\n});\n```\n\nResults in:\n\n```js\n{\n  a: 'b     ',\n  c: 'dddddd',\n  e: 'fff   ',\n  g: 'hhhhh ',\n};\n```\n\n**Specific property in object of objects**\n\n```js\npad('foo', {\n  a: {\n    foo: 'a',\n    bar: 'z'\n  },\n  b: {\n    foo: 'aaaaaaa',\n    bar: 'z'\n  },\n  c: {\n    foo: 'aaa',\n    bar: 'z'\n  }\n});\n```\n\nResults in:\n\n```js\n{ a: { foo: 'a      ', bar: 'z' },\n  b: { foo: 'aaaaaaa', bar: 'z' },\n  c: { foo: 'aaa    ', bar: 'z' } }\n```\n\n**array of objects**\n\nPass an array and specify the property with the value to pad:\n\n```js\nvar pad = require('right-pad-values');\n\nvar arr = [{a: 'b'}, {a: 'bb'}, {a: 'bbbb'}, {a: 'bbb'}, {a: 'bb'}];\npad(arr, 'a');\n```\n\nResults in:\n\n```js\n[\n  {a: 'b   '},\n  {a: 'bb  '},\n  {a: 'bbbb'},\n  {a: 'bbb '},\n  {a: 'bb  '}\n];\n```\n\n## Related projects\n\n* [longest](https://www.npmjs.com/package/longest): Get the longest item in an array. | [homepage](https://github.com/jonschlinkert/longest)\n* [longest-value](https://www.npmjs.com/package/longest-value): Get the longest value for the given property from an array of objects, or the… [more](https://www.npmjs.com/package/longest-value) | [homepage](https://github.com/jonschlinkert/longest-value)\n* [pad-left](https://www.npmjs.com/package/pad-left): Left pad a string with zeros or a specified string. Fastest implementation. | [homepage](https://github.com/jonschlinkert/pad-left)\n* [pad-right](https://www.npmjs.com/package/pad-right): Right pad a string with zeros or a specified string. Fastest implementation. | [homepage](https://github.com/jonschlinkert/pad-right)\n* [repeat-element](https://www.npmjs.com/package/repeat-element): Create an array by repeating the given value n times. | [homepage](https://github.com/jonschlinkert/repeat-element)\n* [repeat-string](https://www.npmjs.com/package/repeat-string): Repeat the given string n times. Fastest implementation for repeating a string. | [homepage](https://github.com/jonschlinkert/repeat-string)\n* [right-align-values](https://www.npmjs.com/package/right-align-values): Right align the values of a given property for each object in an array. Useful… [more](https://www.npmjs.com/package/right-align-values) | [homepage](https://github.com/jonschlinkert/right-align-values)\n\n## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm i -d && npm test\n```\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/right-pad-values/issues/new).\n\n## Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n## License\n\nCopyright © 2015 [Jon Schlinkert](https://github.com/jonschlinkert)\nReleased under the MIT license.\n\n***\n\n_This file was generated by [verb](https://github.com/verbose/verb) on December 27, 2015._","publish_time":1427801727202,"_cnpm_publish_time":1427801727202,"dist-tags":{"latest":"0.3.1"}}