{"_id":"right-pad-values","_rev":"87233","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.","dist-tags":{"latest":"0.3.1"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:28:21.000Z","created":"2015-03-31T11:14:29.864Z","0.3.1":"2015-12-28T03:15:28.037Z","0.3.0":"2015-12-28T03:11:42.190Z","0.2.1":"2015-08-15T12:34:19.028Z","0.2.0":"2015-08-07T21:03:44.128Z","0.1.3":"2015-03-31T11:35:27.202Z","0.1.2":"2015-03-31T11:14:29.864Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/right-pad-values.git"},"versions":{"0.3.1":{"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.1","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":"*"},"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":"3c7f5a1d5aa6c8255615e53782e1f778a097cfff","_id":"right-pad-values@0.3.1","_shasum":"e7f47b50bc32e14dc49fd6acd73052253e7ef8a4","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"e7f47b50bc32e14dc49fd6acd73052253e7ef8a4","size":2926,"noattachment":false,"key":"/right-pad-values/-/right-pad-values-0.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/right-pad-values/download/right-pad-values-0.3.1.tgz"},"directories":{},"publish_time":1451272528037,"_cnpm_publish_time":1451272528037,"_hasShrinkwrap":false},"0.3.0":{"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":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"932bc45a652c12b39c2dbc236b9bf888bb6a689b","size":2932,"noattachment":false,"key":"/right-pad-values/-/right-pad-values-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/right-pad-values/download/right-pad-values-0.3.0.tgz"},"directories":{},"publish_time":1451272302190,"_cnpm_publish_time":1451272302190,"_hasShrinkwrap":false},"0.2.1":{"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.2.1","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":{"longest-value":"^0.2.0","pad-right":"^0.2.1"},"devDependencies":{"mocha":"*","should":"*"},"keywords":["align","column","longest","object","pad","right","table","value","values"],"verb":{"related":{"list":["right-align-values","longest","longest-value","repeat-element","repeat-string","pad-left","pad-right"]}},"gitHead":"db148f0ee166818d7cc2c942a0b4ba19ed075cbb","_id":"right-pad-values@0.2.1","_shasum":"5f4e2647b38ba8165d6debe985577423d92c9149","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"5f4e2647b38ba8165d6debe985577423d92c9149","size":2462,"noattachment":false,"key":"/right-pad-values/-/right-pad-values-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/right-pad-values/download/right-pad-values-0.2.1.tgz"},"directories":{},"publish_time":1439642059028,"_cnpm_publish_time":1439642059028,"_hasShrinkwrap":false},"0.2.0":{"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.2.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":{"longest-value":"^0.2.0"},"devDependencies":{"mocha":"*","should":"*"},"keywords":["align","column","longest","object","pad","right","table","value","values"],"verb":{"related":{"list":["right-align-values","longest","longest-value","repeat-element","repeat-string","pad-left","pad-right"]}},"gitHead":"0071166ae8dccbc85640d5dbc766de03b7521fe5","_id":"right-pad-values@0.2.0","_shasum":"942585e843756925f47ddb1c5748bdfc90c21a67","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"942585e843756925f47ddb1c5748bdfc90c21a67","size":2476,"noattachment":false,"key":"/right-pad-values/-/right-pad-values-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/right-pad-values/download/right-pad-values-0.2.0.tgz"},"directories":{},"publish_time":1438981424128,"_cnpm_publish_time":1438981424128,"_hasShrinkwrap":false},"0.1.3":{"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":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"77e928f0844b46b79d16a25e66c540427c1a9c7b","size":2228,"noattachment":false,"key":"/right-pad-values/-/right-pad-values-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/right-pad-values/download/right-pad-values-0.1.3.tgz"},"directories":{},"publish_time":1427801727202,"_cnpm_publish_time":1427801727202,"_hasShrinkwrap":false},"0.1.2":{"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.2","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"],"_id":"right-pad-values@0.1.2","_shasum":"5eadceff521556d8f283f3685accf4ffc09ea8ad","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"5eadceff521556d8f283f3685accf4ffc09ea8ad","size":2220,"noattachment":false,"key":"/right-pad-values/-/right-pad-values-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/right-pad-values/download/right-pad-values-0.1.2.tgz"},"directories":{},"publish_time":1427800469864,"_cnpm_publish_time":1427800469864,"_hasShrinkwrap":false}},"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._","_attachments":{},"homepage":"https://github.com/jonschlinkert/right-pad-values","bugs":{"url":"https://github.com/jonschlinkert/right-pad-values/issues"},"license":"MIT"}