{"_id":"@buzzin0609/iterable-object","_rev":"1-7a32fbb3a58df353115bc665ee7f2bf0","name":"@buzzin0609/iterable-object","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@buzzin0609/iterable-object","version":"0.0.1","description":"Transforms ordinary objects into iterables. You can use a for of to iterate through any object's properties","main":"IObject.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/buzzin0609/Iterable-Object.git"},"keywords":["object","iterable","for of","iterate objects","loop objects"],"author":{"name":"Will Busby","email":"will0609@hotmail.com"},"license":"MIT","devDependencies":{"expect":"^22.4.3","karma":"^2.0.2","karma-chrome-launcher":"^2.2.0","karma-mocha":"^1.3.0","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^3.0.0","mocha":"^5.1.1","webpack":"^4.8.2"},"gitHead":"668a8e91a226a485cee89ad21b58d09608564d1d","bugs":{"url":"https://github.com/buzzin0609/Iterable-Object/issues"},"homepage":"https://github.com/buzzin0609/Iterable-Object#readme","_id":"@buzzin0609/iterable-object@0.0.1","_npmVersion":"5.7.1","_nodeVersion":"8.10.0","_npmUser":{"name":"buzzin0609","email":"will0609@hotmail.com"},"dist":{"integrity":"sha512-JtRBtwWtfZctsAG4qoKk2oLh3tZIy6MYIaJIfVSmMIYJWBz6y0FV3tEm1sUH1CyDOfYLoUx6OE/xMhmuRs0wAg==","shasum":"1e909db56466c7a0e1c07c69a240b459e6c21762","tarball":"https://registry.npmjs.org/@buzzin0609/iterable-object/-/iterable-object-0.0.1.tgz","fileCount":7,"unpackedSize":4003,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa/1J3CRA9TVsSAnZWagAAhfkQAKNwxL4BeAsa713JYxjE\nr8JYb2qN0TGMdpzFGzsGDXmZ/UTgov1oWkDGWbrmzk1lZkXMBYTqY1GR/Wwf\nEfz/VyQUqLUHIt82vcmvlmOGuWqxFwzFdnD1Bpx287rnod+tzPqnE5VWhZvA\nahBqLzBOiNyi5UACc8NCt7gAamXZsSUUNPRiwByKuGnF1gGY5KOI+Cw0gghn\nVZhYMlFGIpnfpm0oM3CfZNx0cSS+kEWC5YVmwIHASL3L8DmxOc4klGkHUwXq\ntVWo+3jyz7IuWBptBhhLRp/tgtYO+k+0A5wjtoNeifn8vJBIdIUEaR4cvyaj\nsxI2kHU0qbtPwKhry6DWGAtqBd4Ijn9ab0Z6wzX/5abnS1qvfSJyfJL/cPlJ\n78t4nlcks8xkHvND5sIeI1aMqS4EBYQCiFPDxUH9s9Zd7xq5FyZZrIR579Gn\nW05LOLp6etIwbBS5UdE1XZQLVyOsf1OhcFmOxw071q3ZmtSKXBclM2EdgRFu\nnRPTLzNln416HesiWDTfoQDYu2nDFTRB/UDlzbrtglo/zQPV4vv63xlFUzmQ\n0YqMhesA9ROH777xexh/VY/VK0wi2z5rI5e/YKZVBAVnj6W2XWyaFNbgZFTo\nTuSRd6wvUTlXqlc40i3v2Zd/GqHj9n/gWaxO8RkD8xUei4j1N763viIFdYlK\noi31\r\n=sJsG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCLnIpxT4RxVd+xo53JVlFfO9Do1iQObOvntiDVXI0O9gIgDXS39K3C5uapmGBwDZgQn1NKkvqg+Z4bsXZfKt4Xk48="}]},"maintainers":[{"name":"buzzin0609","email":"will0609@hotmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/iterable-object_0.0.1_1526682231231_0.986200663176003"},"_hasShrinkwrap":false}},"time":{"created":"2018-05-18T22:23:50.980Z","0.0.1":"2018-05-18T22:23:51.343Z","modified":"2022-04-04T21:16:21.990Z"},"maintainers":[{"name":"buzzin0609","email":"will0609@hotmail.com"}],"description":"Transforms ordinary objects into iterables. You can use a for of to iterate through any object's properties","homepage":"https://github.com/buzzin0609/Iterable-Object#readme","keywords":["object","iterable","for of","iterate objects","loop objects"],"repository":{"type":"git","url":"git+https://github.com/buzzin0609/Iterable-Object.git"},"author":{"name":"Will Busby","email":"will0609@hotmail.com"},"bugs":{"url":"https://github.com/buzzin0609/Iterable-Object/issues"},"license":"MIT","readme":"# Iterable Object\r\n\r\nGives ordinary Javascript objects the super Symbol.iterator power of the future!\r\n\r\n## Install\r\n\r\nFrom npm\r\n`npm install --save-dev iterable-object`\r\n\r\nOr Yarn\r\n`yarn add iterable-object`\r\n\r\nTo start using IObject, `import` or `require` it into your project.\r\n\r\n`import IObject from 'iterable-object`<br/>\r\nor<br/> \r\n`const IObject = require('iterable-object')`\r\n\r\n## Example Usage\r\n\r\nan instance of IObject acts like any other object: \r\n```javascript\r\nconst obj = new IObject({\r\n    foo: 'bar'\r\n});\r\n\r\nconsole.log(obj.foo);\r\n//outputs 'bar\r\n```\r\n\r\nHowever, the magic happens when you use the instance of IObject in a [for...of](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...of) loop, introduced in ES 2015:\r\n\r\n```javascript\r\nconst obj = new IObject({\r\n    foo: 'bar'\r\n});\r\n\r\nfor (let entry of obj) {\r\n\tconsole.log(entry);\r\n\t//outputs { key: 'foo', value: 'bar' }\r\n}\r\n```\r\n\r\nUsing object destructuring you can get direct access to the entry:\r\n\r\n```javascript\r\nconst obj = new IObject({\r\n    foo: 'bar'\r\n});\r\n\r\nfor (let { key, value } of obj) {\r\n\tconsole.log(key); // 'foo'\r\n\tconsole.log(value); // 'bar'\r\n}\r\n```","readmeFilename":"README.md"}