{"_id":"longest-value","_rev":"222088","name":"longest-value","description":"Get the longest value for the given property from an array of objects, or the longest value in an object. Useful for aligning values for text tables, CLI help, etc.","dist-tags":{"latest":"0.2.0"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T15:40:35.000Z","created":"2015-03-31T09:17:04.418Z","0.2.0":"2015-08-07T17:58:05.927Z","0.1.0":"2015-03-31T09:17:04.418Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/longest-value.git"},"versions":{"0.2.0":{"name":"longest-value","description":"Get the longest value for the given property from an array of objects, or the longest value in an object. Useful for aligning values for text tables, CLI help, etc.","version":"0.2.0","homepage":"https://github.com/jonschlinkert/longest-value","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/longest-value.git"},"bugs":{"url":"https://github.com/jonschlinkert/longest-value/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"longest":"^1.0.0"},"devDependencies":{"mocha":"*","should":"*"},"keywords":["array","cli","command","command-line","console","interface","length","line","longest","object","table","terminal","val","value"],"verb":{"related":{"list":["longest","rename-keys","sort-object"]}},"gitHead":"8644c6bb5c40727ce84e1e8331cfbb31ccffbccb","_id":"longest-value@0.2.0","_shasum":"b77832b0ea5fa5a2c4a1bea9e08d7d15be697b5b","_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":"b77832b0ea5fa5a2c4a1bea9e08d7d15be697b5b","size":2195,"noattachment":false,"key":"/longest-value/-/longest-value-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/longest-value/download/longest-value-0.2.0.tgz"},"directories":{},"publish_time":1438970285927,"_cnpm_publish_time":1438970285927,"_hasShrinkwrap":false},"0.1.0":{"name":"longest-value","description":"Get the longest value for the given property from an array of objects. Useful for aligning values.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/longest-value","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/longest-value.git"},"bugs":{"url":"https://github.com/jonschlinkert/longest-value/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/longest-value/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"longest":"^1.0.0"},"devDependencies":{"mocha":"*","should":"*"},"keywords":["array","length","longest","object","value"],"gitHead":"8644c6bb5c40727ce84e1e8331cfbb31ccffbccb","_id":"longest-value@0.1.0","_shasum":"8fb5370f6140ea1b1b112f9ca3dfe543803d88bd","_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":"8fb5370f6140ea1b1b112f9ca3dfe543803d88bd","size":2002,"noattachment":false,"key":"/longest-value/-/longest-value-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/longest-value/download/longest-value-0.1.0.tgz"},"directories":{},"publish_time":1427793424418,"_cnpm_publish_time":1427793424418,"_hasShrinkwrap":false}},"readme":"# longest-value [![NPM version](https://badge.fury.io/js/longest-value.svg)](http://badge.fury.io/js/longest-value)\n\n> Get the longest value for the given property from an array of objects, or the longest value in an object. Useful for aligning values for text tables, CLI help, etc.\n\nInstall with [npm](https://www.npmjs.com/)\n\n```sh\n$ npm i longest-value --save\n```\n\n## Usage\n\n```js\nvar longest = require('longest-value');\n\nvar arr = [{a: 'b'}, {a: 'bb'}, {a: 'bbbb'}, {a: 'bbb'}, {a: 'bb'}];\nlongest(arr, 'a');\n//=> 'bbbb'\n\nlongest({a: 'b', c: 'dd', e: 'fff', g: 'h'})\n//=> 'fff'\n```\n\n## Other object/array utils\n\n* [longest](https://github.com/jonschlinkert/longest): Get the longest item in an array.\n* [rename-keys](https://github.com/jonschlinkert/rename-keys): Modify the names of the own enumerable properties (keys) of an object.\n* [sort-object](https://github.com/doowb/sort-object): Sort the keys in an object.\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/longest-value/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\nReleased under the MIT license.\n\n***\n\n_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on August 07, 2015._","_attachments":{},"homepage":"https://github.com/jonschlinkert/longest-value","bugs":{"url":"https://github.com/jonschlinkert/longest-value/issues"},"license":"MIT"}