{"_id":"i-","_rev":"7-b933c0dd835c5dbdcbbf13b913569897","name":"i-","description":"A (very) simple library to expose only clones of referenced objects in function arguments.","dist-tags":{"latest":"1.1.5"},"versions":{"1.1.0":{"name":"i-","version":"1.1.0","description":"A (very) simple library to expose only clones of referenced objects in function arguments.","main":"lib/i","scripts":{"test":"mocha **/*.test.js"},"repository":{"type":"git","url":"git+https://github.com/MD4/i.git"},"bugs":{"url":"https://github.com/MD4/i/issues"},"homepage":"https://github.com/MD4/i#readme","author":{"name":"Martin DEQUATREMARE","url":"https://github.com/MD4"},"license":"MIT","keywords":["immutable","function","functional","copy","arguments"],"engines":{"node":">=4.1"},"devDependencies":{"mocha":"^2.5.3","chai":"^3.5.0"},"dependencies":{"deepcopy":"^0.6.1"},"gitHead":"980d21f76c0ed2114ad65ac0f0df6d09682bd284","_id":"i-@1.1.0","_shasum":"e7192ce86083e3e438616bacffa47b56f9fdbe2b","_from":".","_npmVersion":"3.9.3","_nodeVersion":"6.2.1","_npmUser":{"name":"md4","email":"contact@martin-dequatremare.fr"},"dist":{"shasum":"e7192ce86083e3e438616bacffa47b56f9fdbe2b","tarball":"https://registry.npmjs.org/i-/-/i--1.1.0.tgz","integrity":"sha512-fV2uJKmCMz2U8D7Y68VY0UADw3iwmCHQWiBcv0ck3Ie1tMTygbZHpG/IsyOPG5pynS6zAluDVR5MvzWxPhV3gQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDe04Hi4z8d0AON3xI2p5Sg5LjZxz7O3x8ec7ibsf5u4AIgQiIEnlk6YKpjkSvI3pE9T+i0vKTK6e9yhXhMR8rsJC8="}]},"maintainers":[{"name":"md4","email":"contact@martin-dequatremare.fr"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/i--1.1.0.tgz_1465313634212_0.22470958391204476"}},"1.1.1":{"name":"i-","version":"1.1.1","description":"A (very) simple library to expose only clones of referenced objects in function arguments.","main":"lib/i","scripts":{"test":"mocha **/*.test.js"},"repository":{"type":"git","url":"git+https://github.com/MD4/i.git"},"bugs":{"url":"https://github.com/MD4/i/issues"},"homepage":"https://github.com/MD4/i#readme","author":{"name":"Martin DEQUATREMARE","url":"https://github.com/MD4"},"license":"MIT","keywords":["immutable","function","functional","copy","arguments"],"engines":{"node":">=4.1"},"devDependencies":{"mocha":"^2.5.3","chai":"^3.5.0"},"dependencies":{"deepcopy":"^0.6.1"},"gitHead":"bb6c09124d382e9ff54da80ee8a4f5d3cd3b3195","_id":"i-@1.1.1","_shasum":"01814cc5fa39899f933a9f8d49926421614a6906","_from":".","_npmVersion":"3.9.3","_nodeVersion":"6.2.1","_npmUser":{"name":"md4","email":"contact@martin-dequatremare.fr"},"dist":{"shasum":"01814cc5fa39899f933a9f8d49926421614a6906","tarball":"https://registry.npmjs.org/i-/-/i--1.1.1.tgz","integrity":"sha512-O/O0f/4ukspWZB6r11nwiUsiFvwKp9pERxgutM8lRYb8QYII03fosP4UwHYNoScn7c8ZTAN1ghpUZeKC7fjqzg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD6S5bzYk3DumRmh7eexvTgkEotmlen8u688EsvmvHzUgIhAOTvkPpKUd7p/O4LjpkW++AaxxSSI+flFz33wxwIxg4o"}]},"maintainers":[{"name":"md4","email":"contact@martin-dequatremare.fr"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/i--1.1.1.tgz_1465313788381_0.9684898669365793"}},"1.1.2":{"name":"i-","version":"1.1.2","description":"A (very) simple library to expose only clones of referenced objects in function arguments.","main":"lib/i","scripts":{"test":"mocha **/*.test.js"},"repository":{"type":"git","url":"git+https://github.com/MD4/i.git"},"bugs":{"url":"https://github.com/MD4/i/issues"},"homepage":"https://github.com/MD4/i#readme","author":{"name":"Martin DEQUATREMARE","url":"https://github.com/MD4"},"license":"MIT","keywords":["immutable","function","functional","copy","arguments"],"engines":{"node":">=4.1"},"devDependencies":{"mocha":"^2.5.3","chai":"^3.5.0"},"dependencies":{"deepcopy":"^0.6.1"},"gitHead":"770cf7e9c4eb92e28fabda4cc7d6da47b8a41f00","_id":"i-@1.1.2","_shasum":"61d2c32e54893dcb59a2fdd07b60dda33b6b653c","_from":".","_npmVersion":"3.9.3","_nodeVersion":"6.2.1","_npmUser":{"name":"md4","email":"contact@martin-dequatremare.fr"},"dist":{"shasum":"61d2c32e54893dcb59a2fdd07b60dda33b6b653c","tarball":"https://registry.npmjs.org/i-/-/i--1.1.2.tgz","integrity":"sha512-bbE/I2bJO6Ix5LDL9Q6E/Nifqh56RG/uCKoer1aSiIY0gKQvzHFEre6I8h/gAvqqNY1g0xql4WBkNwqBxgOXZw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC5WsLWyXPkwqytp8dvPf1yUoZMecAnzV2Vovnk13C1YwIgSCzINmrIlXML0PQqxjz+jQrbOTtAKNYCAKEK5jUy2R4="}]},"maintainers":[{"name":"md4","email":"contact@martin-dequatremare.fr"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/i--1.1.2.tgz_1465313964932_0.7111383341252804"}},"1.1.3":{"name":"i-","version":"1.1.3","description":"A (very) simple library to expose only clones of referenced objects in function arguments.","main":"lib/i","scripts":{"test":"mocha **/*.test.js"},"repository":{"type":"git","url":"git+https://github.com/MD4/i.git"},"bugs":{"url":"https://github.com/MD4/i/issues"},"homepage":"https://github.com/MD4/i#readme","author":{"name":"Martin DEQUATREMARE","url":"https://github.com/MD4"},"license":"MIT","keywords":["immutable","function","functional","copy","arguments"],"engines":{"node":">=4.1"},"devDependencies":{"mocha":"^2.5.3","chai":"^3.5.0"},"dependencies":{"deepcopy":"^0.6.1"},"gitHead":"4a1a7fe2b8f95014ce136b4cd0f6b748304b82ef","_id":"i-@1.1.3","_shasum":"6e98351129a09a1badc85315af18ec54bbfb2394","_from":".","_npmVersion":"3.9.3","_nodeVersion":"6.2.1","_npmUser":{"name":"md4","email":"contact@martin-dequatremare.fr"},"dist":{"shasum":"6e98351129a09a1badc85315af18ec54bbfb2394","tarball":"https://registry.npmjs.org/i-/-/i--1.1.3.tgz","integrity":"sha512-+D9ZW0g/xlsfqoG1BNby+FGN6TYKf8Ghox2+oJ21uFYGta8iU/UT/7kwWOwPhDE5rhMpJv8PpoEqk70DenkiBA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDYXSpSB/2dkmBon7Sk3VDJqy//V+3sX5XVUBZIqNRYBwIhALo9/WCK5WbE1ClSRWjDzB9dQ7ysJ4DhIt58KNN9PuHt"}]},"maintainers":[{"name":"md4","email":"contact@martin-dequatremare.fr"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/i--1.1.3.tgz_1465314321969_0.7092435928061604"}},"1.1.5":{"name":"i-","version":"1.1.5","description":"A (very) simple library to expose only clones of referenced objects in function arguments.","main":"lib/i","scripts":{"test":"mocha **/*.test.js"},"repository":{"type":"git","url":"git+https://github.com/MD4/i.git"},"bugs":{"url":"https://github.com/MD4/i/issues"},"homepage":"https://github.com/MD4/i#readme","author":{"name":"Martin DEQUATREMARE","url":"https://github.com/MD4"},"license":"MIT","keywords":["immutable","function","functional","copy","arguments"],"engines":{"node":">=4.1"},"devDependencies":{"mocha":"2.5.3","chai":"3.5.0"},"dependencies":{"deepcopy":"0.6.3"},"gitHead":"883c88ceb60f62cf82fc534597d8328bc37daa11","_id":"i-@1.1.5","_shasum":"01cc34f2559deb16b13c11a57752b089a0d81f6e","_from":".","_npmVersion":"3.9.3","_nodeVersion":"6.2.1","_npmUser":{"name":"md4","email":"contact@martin-dequatremare.fr"},"dist":{"shasum":"01cc34f2559deb16b13c11a57752b089a0d81f6e","tarball":"https://registry.npmjs.org/i-/-/i--1.1.5.tgz","integrity":"sha512-lxscbk6hI4LBqlUSK8mj3m41Q9shva0GSGwQljxKmC25L+VJvYXH9fttPOJ6f06P8ExJbtokDwMfOAJjEf68jw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7tGZ///UsR9OqmlnfLOi3myy4ykshHCk0SUVSiJKvfAIgVAD/ZiJYECNqGCn2sSlCcSvwaxJFD2ZrLmOfGFbt5qA="}]},"maintainers":[{"name":"md4","email":"contact@martin-dequatremare.fr"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/i--1.1.5.tgz_1467105626865_0.6563399124424905"}}},"readme":"# i\r\n[![Build Status](https://travis-ci.org/MD4/i.svg?branch=master)](https://travis-ci.org/MD4/i)\r\n[![Build Status](https://david-dm.org/MD4/i.svg)](https://david-dm.org/MD4/i)\r\n\r\nA (very) simple library to expose only clones of referenced objects in function arguments.\r\n\r\n## Installation\r\n\r\n```npm install i-```\r\n\r\n## Usage\r\n\r\n### Require\r\n\r\n```javascript\r\nvar i = require('i-');\r\n// or simply\r\nrequire('i-');\r\n```\r\n\r\n### Example\r\n\r\n```javascript\r\nvar a = { a: 1, b: 2 };\r\n\r\nvar transform = (obj => {\r\n  obj.b = 3;\r\n  return obj;\r\n}).i;\r\n\r\n// or\r\n\r\ntransform = i(obj => {\r\n  obj.b = 3;\r\n  return obj;\r\n});\r\n\r\n// or\r\n\r\ntransform = i(function(obj) {\r\n  obj.b = 3;\r\n  return obj;\r\n});\r\n\r\n// or\r\n\r\ntransform = function(obj) {\r\n  obj.b = 3;\r\n  return obj;\r\n}.i;\r\n\r\nconsole.log(a);\r\nconsole.log(transform(a));\r\nconsole.log(a);\r\n```\r\n\r\n## test\r\n```npm test```\r\n\r\n## Notes\r\n\r\nI still have no idea if it is a stupid or good idea.\r\n","maintainers":[{"name":"md4","email":"contact@martin-dequatremare.fr"}],"time":{"modified":"2022-06-18T23:43:45.812Z","created":"2016-06-07T15:33:56.173Z","1.1.0":"2016-06-07T15:33:56.173Z","1.1.1":"2016-06-07T15:36:30.420Z","1.1.2":"2016-06-07T15:39:27.298Z","1.1.3":"2016-06-07T15:45:24.456Z","1.1.5":"2016-06-28T09:20:29.082Z"},"homepage":"https://github.com/MD4/i#readme","keywords":["immutable","function","functional","copy","arguments"],"repository":{"type":"git","url":"git+https://github.com/MD4/i.git"},"author":{"name":"Martin DEQUATREMARE","url":"https://github.com/MD4"},"bugs":{"url":"https://github.com/MD4/i/issues"},"license":"MIT","readmeFilename":"README.md"}