{"_id":"fromentries","_rev":"212453","name":"fromentries","description":"Object.fromEntries() ponyfill (in 6 lines)","dist-tags":{"latest":"1.3.2"},"maintainers":[{"name":"feross","email":""}],"time":{"modified":"2021-06-03T15:31:11.000Z","created":"2018-06-21T19:08:25.881Z","1.3.2":"2020-11-04T21:51:56.759Z","1.3.1":"2020-10-27T22:24:30.620Z","1.3.0":"2020-10-21T19:47:04.681Z","1.2.1":"2020-07-17T02:48:29.954Z","1.2.0":"2019-08-10T04:03:53.708Z","1.1.0":"2018-09-12T19:59:43.655Z","1.0.3":"2018-06-21T20:54:16.844Z","1.0.2":"2018-06-21T19:18:07.604Z","1.0.1":"2018-06-21T19:16:41.770Z","1.0.0":"2018-06-21T19:08:25.881Z"},"users":{},"author":{"name":"Feross Aboukhadijeh","email":"feross@feross.org","url":"https://feross.org"},"repository":{"type":"git","url":"git://github.com/feross/fromentries.git"},"versions":{"1.3.2":{"name":"fromentries","description":"Object.fromEntries() ponyfill (in 6 lines)","version":"1.3.2","author":{"name":"Feross Aboukhadijeh","email":"feross@feross.org","url":"https://feross.org"},"bugs":{"url":"https://github.com/feross/fromentries/issues"},"devDependencies":{"standard":"*","tape":"^5.0.1"},"homepage":"https://github.com/feross/fromentries","keywords":["Object.fromEntries","Object.entries","Object.values","Object.keys","entries","values","fromEntries","ES7","ES8","shim","object","keys","polyfill","ponyfill"],"license":"MIT","main":"index.js","types":"index.d.ts","repository":{"type":"git","url":"git://github.com/feross/fromentries.git"},"scripts":{"test":"standard && tape test/**/*.js"},"funding":[{"type":"github","url":"https://github.com/sponsors/feross"},{"type":"patreon","url":"https://www.patreon.com/feross"},{"type":"consulting","url":"https://feross.org/support"}],"gitHead":"31c73f61eeed912788f15c1bc9abc3ef71650185","_id":"fromentries@1.3.2","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"shasum":"e4bca6808816bf8f93b52750f1127f5a6fd86e3a","size":2494,"noattachment":false,"key":"/fromentries/-/fromentries-1.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/fromentries/download/fromentries-1.3.2.tgz"},"_npmUser":{"name":"feross","email":"feross@feross.org"},"directories":{},"maintainers":[{"name":"feross","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fromentries_1.3.2_1604526716608_0.08642617013902032"},"_hasShrinkwrap":false,"publish_time":1604526716759,"_cnpm_publish_time":1604526716759},"1.3.1":{"name":"fromentries","description":"Object.fromEntries() ponyfill (in 6 lines)","version":"1.3.1","author":{"name":"Feross Aboukhadijeh","email":"feross@feross.org","url":"https://feross.org"},"bugs":{"url":"https://github.com/feross/fromentries/issues"},"devDependencies":{"standard":"*","tape":"^5.0.1"},"homepage":"https://github.com/feross/fromentries","keywords":["Object.fromEntries","Object.entries","Object.values","Object.keys","entries","values","fromEntries","ES7","ES8","shim","object","keys","polyfill","ponyfill"],"license":"MIT","main":"index.js","types":"index.d.ts","repository":{"type":"git","url":"git://github.com/feross/fromentries.git"},"scripts":{"test":"standard && tape test/**/*.js"},"funding":[{"type":"github","url":"https://github.com/sponsors/feross"},{"type":"patreon","url":"https://www.patreon.com/feross"},{"type":"consulting","url":"https://feross.org/support"}],"gitHead":"293ec319bfe4389a94c073224d6c096ccaace4a0","_id":"fromentries@1.3.1","_nodeVersion":"14.14.0","_npmVersion":"6.14.8","dist":{"shasum":"b14c6d4d606c771ce85597f13794fb10200a0ccc","size":2494,"noattachment":false,"key":"/fromentries/-/fromentries-1.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/fromentries/download/fromentries-1.3.1.tgz"},"maintainers":[{"name":"feross","email":""}],"_npmUser":{"name":"feross","email":"feross@feross.org"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fromentries_1.3.1_1603837470460_0.370479036440595"},"_hasShrinkwrap":false,"publish_time":1603837470620,"_cnpm_publish_time":1603837470620},"1.3.0":{"name":"fromentries","description":"Object.fromEntries() ponyfill (in 6 lines)","version":"1.3.0","author":{"name":"Feross Aboukhadijeh","email":"feross@feross.org","url":"https://feross.org"},"bugs":{"url":"https://github.com/feross/fromentries/issues"},"devDependencies":{"standard":"*","tape":"^5.0.1"},"homepage":"https://github.com/feross/fromentries","keywords":["Object.fromEntries","Object.entries","Object.values","Object.keys","entries","values","fromEntries","ES7","ES8","shim","object","keys","polyfill","ponyfill"],"license":"MIT","main":"index.js","types":"index.d.ts","repository":{"type":"git","url":"git://github.com/feross/fromentries.git"},"scripts":{"test":"standard && tape test/**/*.js"},"funding":[{"type":"github","url":"https://github.com/sponsors/feross"},{"type":"patreon","url":"https://www.patreon.com/feross"},{"type":"consulting","url":"https://feross.org/support"}],"gitHead":"7df43c7d1643b3abfa4f8ea2dd042c50b3e6a13a","_id":"fromentries@1.3.0","_nodeVersion":"14.14.0","_npmVersion":"6.14.8","dist":{"shasum":"508bd33f0d704a836c9b18e05df59792c82668bc","size":2510,"noattachment":false,"key":"/fromentries/-/fromentries-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/fromentries/download/fromentries-1.3.0.tgz"},"maintainers":[{"name":"feross","email":""}],"_npmUser":{"name":"feross","email":"feross@feross.org"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fromentries_1.3.0_1603309624558_0.12860778323351774"},"_hasShrinkwrap":false,"publish_time":1603309624681,"_cnpm_publish_time":1603309624681},"1.2.1":{"name":"fromentries","description":"Object.fromEntries() ponyfill (in 6 lines)","version":"1.2.1","author":{"name":"Feross Aboukhadijeh","email":"feross@feross.org","url":"https://feross.org"},"bugs":{"url":"https://github.com/feross/fromentries/issues"},"devDependencies":{"standard":"*","tape":"^5.0.1"},"homepage":"https://github.com/feross/fromentries","keywords":["Object.fromEntries","Object.entries","Object.values","Object.keys","entries","values","fromEntries","ES7","ES8","shim","object","keys","polyfill","ponyfill"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git://github.com/feross/fromentries.git"},"scripts":{"test":"standard && tape test/**/*.js"},"funding":[{"type":"github","url":"https://github.com/sponsors/feross"},{"type":"patreon","url":"https://www.patreon.com/feross"},{"type":"consulting","url":"https://feross.org/support"}],"gitHead":"5d2cedaa77f1c1b985b5c78e84a638073366dde1","_id":"fromentries@1.2.1","_nodeVersion":"12.18.2","_npmVersion":"6.14.6","dist":{"shasum":"64c31665630479bc993cd800d53387920dc61b4d","size":2383,"noattachment":false,"key":"/fromentries/-/fromentries-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/fromentries/download/fromentries-1.2.1.tgz"},"maintainers":[{"name":"feross","email":""}],"_npmUser":{"name":"feross","email":"feross@feross.org"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fromentries_1.2.1_1594954109861_0.025570210549232808"},"_hasShrinkwrap":false,"publish_time":1594954109954,"_cnpm_publish_time":1594954109954},"1.2.0":{"name":"fromentries","description":"Object.fromEntries() ponyfill (in 6 lines)","version":"1.2.0","author":{"name":"Feross Aboukhadijeh","email":"feross@feross.org","url":"https://feross.org"},"bugs":{"url":"https://github.com/feross/fromentries/issues"},"devDependencies":{"standard":"*","tape":"^4.9.1"},"homepage":"https://github.com/feross/fromentries","keywords":["Object.fromEntries","Object.entries","Object.values","Object.keys","entries","values","fromEntries","ES7","ES8","shim","object","keys","polyfill","ponyfill"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git://github.com/feross/fromentries.git"},"scripts":{"test":"standard && tape test/**/*.js"},"gitHead":"2192031b31e6a6add13ffa4e955eb4319eece169","_id":"fromentries@1.2.0","_nodeVersion":"10.16.0","_npmVersion":"6.10.2","dist":{"shasum":"e6aa06f240d6267f913cea422075ef88b63e7897","size":2282,"noattachment":false,"key":"/fromentries/-/fromentries-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/fromentries/download/fromentries-1.2.0.tgz"},"maintainers":[{"name":"feross","email":""}],"_npmUser":{"name":"feross","email":"feross@feross.org"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fromentries_1.2.0_1565409833609_0.05555700444654277"},"_hasShrinkwrap":false,"publish_time":1565409833708,"_cnpm_publish_time":1565409833708},"1.1.0":{"name":"fromentries","description":"Object.fromEntries() ponyfill (in 6 lines)","version":"1.1.0","author":{"name":"Feross Aboukhadijeh","email":"feross@feross.org","url":"https://feross.org"},"bugs":{"url":"https://github.com/feross/fromentries/issues"},"devDependencies":{"standard":"*","tape":"^4.9.1"},"homepage":"https://github.com/feross/fromentries","keywords":["Object.fromEntries","Object.entries","Object.values","Object.keys","entries","values","fromEntries","ES7","ES8","shim","object","keys","polyfill","ponyfill"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git://github.com/feross/fromentries.git"},"scripts":{"test":"standard && tape test/**/*.js"},"gitHead":"655df914d032dda489ca34dd40b42ba4ae7f6dc0","_id":"fromentries@1.1.0","_npmVersion":"6.4.1","_nodeVersion":"10.10.0","_npmUser":{"name":"feross","email":"feross@feross.org"},"dist":{"shasum":"621687fd011650fa39a44f46eac6617b812c6b80","size":2288,"noattachment":false,"key":"/fromentries/-/fromentries-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/fromentries/download/fromentries-1.1.0.tgz"},"maintainers":[{"name":"feross","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fromentries_1.1.0_1536782383542_0.2975932698612105"},"_hasShrinkwrap":false,"publish_time":1536782383655,"_cnpm_publish_time":1536782383655},"1.0.3":{"name":"fromentries","description":"Object.fromEntries() ponyfill (in 6 lines)","version":"1.0.3","author":{"name":"Feross Aboukhadijeh","email":"feross@feross.org","url":"https://feross.org"},"bugs":{"url":"https://github.com/feross/fromentries/issues"},"devDependencies":{"standard":"*","tape":"^4.9.1"},"homepage":"https://github.com/feross/fromentries","keywords":["Object.fromEntries","Object.entries","Object.values","Object.keys","entries","values","fromEntries","ES7","ES8","shim","object","keys","polyfill","ponyfill"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git://github.com/feross/fromentries.git"},"scripts":{"test":"standard && tape test/**/*.js"},"gitHead":"88ea4719d27b9a480c88e5434d7d805ff447574f","_id":"fromentries@1.0.3","_npmVersion":"6.1.0","_nodeVersion":"8.11.3","_npmUser":{"name":"feross","email":"feross@feross.org"},"dist":{"shasum":"1f0b6b5baf648bef7c3e72fb3101cfc8a1bebfba","size":2285,"noattachment":false,"key":"/fromentries/-/fromentries-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/fromentries/download/fromentries-1.0.3.tgz"},"maintainers":[{"name":"feross","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fromentries_1.0.3_1529614456777_0.5874812239927742"},"_hasShrinkwrap":false,"publish_time":1529614456844,"_cnpm_publish_time":1529614456844},"1.0.2":{"name":"fromentries","description":"Object.fromEntries() ponyfill (in 6 lines)","version":"1.0.2","author":{"name":"Feross Aboukhadijeh","email":"feross@feross.org","url":"https://feross.org"},"bugs":{"url":"https://github.com/feross/fromentries/issues"},"devDependencies":{"standard":"*","tape":"^4.9.1"},"homepage":"https://github.com/feross/fromentries","keywords":["Object.fromEntries","Object.entries","Object.values","Object.keys","entries","values","fromEntries","ES7","ES8","shim","object","keys","polyfill","ponyfill"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git://github.com/feross/fromentries.git"},"scripts":{"test":"standard && tape test/**/*.js"},"gitHead":"5b3c90653222e07832edc88924558197106693c9","_id":"fromentries@1.0.2","_npmVersion":"6.1.0","_nodeVersion":"8.11.3","_npmUser":{"name":"feross","email":"feross@feross.org"},"dist":{"shasum":"9686c943e879b70babdccb501c13724b45623d06","size":2196,"noattachment":false,"key":"/fromentries/-/fromentries-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/fromentries/download/fromentries-1.0.2.tgz"},"maintainers":[{"name":"feross","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fromentries_1.0.2_1529608687541_0.37225627118154825"},"_hasShrinkwrap":false,"publish_time":1529608687604,"_cnpm_publish_time":1529608687604},"1.0.1":{"name":"fromentries","description":"Object.fromEntries() ponyfill (in 6 lines)","version":"1.0.1","author":{"name":"Feross Aboukhadijeh","email":"feross@feross.org","url":"https://feross.org"},"bugs":{"url":"https://github.com/feross/fromentries/issues"},"devDependencies":{"standard":"*","tape":"^4.9.1"},"homepage":"https://github.com/feross/fromentries","keywords":["Object.fromEntries","Object.entries","Object.values","Object.keys","entries","values","fromEntries","ES7","ES8","shim","object","keys","polyfill","ponyfill"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git://github.com/feross/fromentries.git"},"scripts":{"test":"standard && tape test/**/*.js"},"gitHead":"0a7aa37e239c0161944ff9111361ef344659663b","_id":"fromentries@1.0.1","_npmVersion":"6.1.0","_nodeVersion":"8.11.3","_npmUser":{"name":"feross","email":"feross@feross.org"},"dist":{"shasum":"7c006fc66bd748a008ae8b41385f1cad59cd3fdb","size":2430,"noattachment":false,"key":"/fromentries/-/fromentries-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/fromentries/download/fromentries-1.0.1.tgz"},"maintainers":[{"name":"feross","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fromentries_1.0.1_1529608601679_0.6614121603422305"},"_hasShrinkwrap":false,"publish_time":1529608601770,"_cnpm_publish_time":1529608601770},"1.0.0":{"name":"fromentries","description":"Object.fromEntries() ponyfill (in 6 lines)","version":"1.0.0","author":{"name":"Feross Aboukhadijeh","email":"feross@feross.org","url":"https://feross.org"},"bugs":{"url":"https://github.com/feross/fromentries/issues"},"devDependencies":{"standard":"*"},"homepage":"https://github.com/feross/fromentries","keywords":["Object.fromEntries","Object.entries","Object.values","Object.keys","entries","values","fromEntries","ES7","ES8","shim","object","keys","polyfill","ponyfill"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git://github.com/feross/fromentries.git"},"scripts":{"test":"standard"},"gitHead":"8a8a7ca9c185e6a1af3fa2f3788b4cf32acf5a1a","_id":"fromentries@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"feross","email":"feross@feross.org"},"dist":{"shasum":"2ecc172fcbbdc615f4bd916d81ab66b746011ad7","size":4612,"noattachment":false,"key":"/fromentries/-/fromentries-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/fromentries/download/fromentries-1.0.0.tgz"},"maintainers":[{"name":"feross","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fromentries_1.0.0_1529608105806_0.3477140904323459"},"_hasShrinkwrap":false,"publish_time":1529608105881,"_cnpm_publish_time":1529608105881}},"readme":"# fromentries [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url]\n\n[travis-image]: https://img.shields.io/travis/feross/fromentries/master.svg\n[travis-url]: https://travis-ci.org/feross/fromentries\n[npm-image]: https://img.shields.io/npm/v/fromentries.svg\n[npm-url]: https://npmjs.org/package/fromentries\n[downloads-image]: https://img.shields.io/npm/dm/fromentries.svg\n[downloads-url]: https://npmjs.org/package/fromentries\n[standard-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg\n[standard-url]: https://standardjs.com\n\n### Object.fromEntries() ponyfill (in 6 lines)\n\n## Install\n\n```\nnpm install fromentries\n```\n\n## Why this package?\n\nExisting polyfill packages (like\n[`object.fromentries`](https://github.com/es-shims/Object.fromEntries))\npull in a bunch of dependencies and **adds over 8\nKB** to the browser bundle size. This allows them to work in ES3 environments\nlike IE6, but it's also overkill; almost no one supports IE6 anymore.\n\nI'd rather not ship tons of extra code to website visitors. A polyfill for this\nfeature can be implemented in a few short lines of code using modern language\nfeatures. That's what `fromentries` (this package) does.\n\nThis means that `fromentries` only works in evergreen browsers like:\n\n- Chrome\n- Firefox\n- Edge\n- Safari\n- Opera\n\nIt does not work in browsers like IE11 and older (unless you transpile it first).\n\n## Usage\n\n```js\nconst fromEntries = require('fromentries')\n\nconst map = new Map([ [ 'a', 1 ], [ 'b', 2 ], [ 'c', 3 ] ])\nconst obj = fromEntries(map)\nconstole.log(obj) // { a: 1, b: 2, c: 3 }\n\nconst searchParams = new URLSearchParams('foo=bar&baz=qux')\nconst obj2 = fromEntries(searchParams)\nconsole.log(obj2) // { foo: 'bar', 'baz': 'qux' }\n```\n\n## What is a ponyfill?\n\n> A *ponyfill* is almost the same as a polyfill, but not quite. Instead of\n> patching functionality for older browsers, a ponyfill provides that\n> functionality as a standalone module you can use.\n\nRead more at [PonyFoo](https://ponyfoo.com/articles/polyfills-or-ponyfills).\n\n## See also\n\n- [TC39 proposal for Object.fromEntries](https://github.com/tc39/proposal-object-from-entries)\n\n## License\n\nMIT. Copyright (c) [Feross Aboukhadijeh](http://feross.org).\n","_attachments":{},"homepage":"https://github.com/feross/fromentries","bugs":{"url":"https://github.com/feross/fromentries/issues"},"license":"MIT"}