{"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.3.0","homepage":"https://github.com/jonschlinkert/right-pad-values","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/right-pad-values.git"},"bugs":{"url":"https://github.com/jonschlinkert/right-pad-values/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"isobject":"^2.0.0","longest-value":"^0.2.0","pad-right":"^0.2.2"},"devDependencies":{"mocha":"*","should":"*"},"keywords":["align","column","longest","object","pad","right","table","value","values"],"verb":{"related":{"list":["longest","longest-value","pad-left","pad-right","repeat-element","repeat-string","right-align-values"]},"layout":"default","plugins":["gulp-format-md"]},"gitHead":"a1e6045a1dbb6eceab9bb87ecd872fed45e9214f","_id":"right-pad-values@0.3.0","_shasum":"932bc45a652c12b39c2dbc236b9bf888bb6a689b","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"doowb","email":"brian.woodward@gmail.com"}],"dist":{"shasum":"932bc45a652c12b39c2dbc236b9bf888bb6a689b","tarball":"http://registry-npm.ywwl.com/right-pad-values/download/right-pad-values-0.3.0.tgz","integrity":"sha512-s+FCK6fh0zGgjIVf2CC+AT8mDRWASLH57bVEcaTZTFmyJMrlI9YB+SC9C1+PHKAfdWiPbd6wJk+dIjSsnyPoDQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHz/6uOmfEc+Tp87paz0V4Fr7KFoDWWLkCt4+xrGucbDAiAkXkzdMpZ9ZAbGzOi4EkPeAdSyxo0VsMt+GvVWBoouUw=="}],"size":2932,"noattachment":false,"key":"/right-pad-values/-/right-pad-values-0.3.0.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":1451272302190,"_cnpm_publish_time":1451272302190,"dist-tags":{"latest":"0.3.1"}}