{"_id":"nested-property","_rev":"3883666","name":"nested-property","description":"Read, write or test a data structure's nested property via a string like 'my.nested.property'. It works through arrays and objects.'","dist-tags":{"latest":"4.0.0"},"maintainers":[{"name":"podefr","email":""}],"time":{"modified":"2025-09-01T01:01:16.000Z","created":"2014-04-01T03:32:22.848Z","4.0.0":"2020-09-30T20:06:09.422Z","3.0.0":"2020-09-27T14:58:06.938Z","2.0.2":"2020-08-22T11:40:29.798Z","2.0.1":"2020-06-23T20:08:21.220Z","2.0.0":"2020-02-18T23:10:09.472Z","2.0.0-beta1":"2020-02-05T01:27:56.125Z","1.0.4":"2020-01-18T21:45:29.068Z","1.0.3":"2020-01-16T03:44:09.402Z","1.0.2":"2019-11-21T04:30:57.544Z","1.0.1":"2019-06-22T22:37:41.757Z","0.0.7":"2016-08-10T01:44:51.269Z","0.0.6":"2015-03-02T05:00:00.600Z","0.0.5":"2015-01-20T01:44:38.658Z","0.0.4":"2015-01-16T04:39:21.865Z","0.0.3":"2015-01-14T05:23:16.477Z","0.0.2":"2014-04-08T00:42:57.039Z","0.0.1":"2014-04-01T03:32:22.848Z"},"users":{},"author":{"name":"Olivier Scherrer","email":"pode.fr@gmail.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/cosmosio/nested-property.git"},"versions":{"4.0.0":{"name":"nested-property","description":"Read, write or test a data structure's nested property via a string like 'my.nested.property'. It works through arrays and objects.'","version":"4.0.0","homepage":"https://github.com/cosmosio/nested-property","license":"MIT","author":{"name":"Olivier Scherrer","email":"pode.fr@gmail.com"},"contributors":[{"name":"Igor Barbosa","url":"https://github.com/igor-barbosa"}],"keywords":["nested","property","object","array","read","write","get","set"],"repository":{"type":"git","url":"git+ssh://git@github.com/cosmosio/nested-property.git"},"bugs":{"url":"https://github.com/cosmosio/nested-property/issues"},"scripts":{"test":"mocha test/","debug-test":"mocha debug test/","test-build":"ENTRYPOINT=../dist/nested-property.js mocha test/","lint":"eslint index.js test/","fix-lint":"eslint index.js test/ --fix","build":"babel index.js -o dist/nested-property.js"},"main":"./dist/nested-property.js","devDependencies":{"@babel/cli":"^7.11.6","@babel/core":"^7.11.6","@babel/preset-env":"^7.11.5","chai":"~1.9.1","eslint":"^6.8.0","mocha":"^8.1.3","sinon":"~1.12.2"},"gitHead":"bfba15b7ba54277317f645d57f0bbbd4cb403cf6","_id":"nested-property@4.0.0","_nodeVersion":"12.17.0","_npmVersion":"6.14.4","dist":{"shasum":"a67b5a31991e701e03cdbaa6453bc5b1011bb88d","size":6981,"noattachment":false,"key":"/nested-property/-/nested-property-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/nested-property/download/nested-property-4.0.0.tgz"},"maintainers":[{"name":"podefr","email":""}],"_npmUser":{"name":"podefr","email":"pode.fr@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nested-property_4.0.0_1601496369319_0.8331948869759709"},"_hasShrinkwrap":false,"publish_time":1601496369422,"_cnpm_publish_time":1601496369422,"_cnpmcore_publish_time":"2021-12-16T19:43:07.882Z"},"3.0.0":{"name":"nested-property","description":"Read, write or test a data structure's nested property via a string like 'my.nested.property'. It works through arrays and objects.'","version":"3.0.0","homepage":"https://github.com/cosmosio/nested-property","license":"MIT","author":{"name":"Olivier Scherrer","email":"pode.fr@gmail.com"},"contributors":[{"name":"Igor Barbosa","url":"https://github.com/igor-barbosa"}],"keywords":["nested","property","object","array","read","write","get","set"],"repository":{"type":"git","url":"git+ssh://git@github.com/cosmosio/nested-property.git"},"bugs":{"url":"https://github.com/cosmosio/nested-property/issues"},"scripts":{"test":"mocha test/","debug-test":"mocha debug test/","test-build":"ENTRYPOINT=../dist/nested-property.js mocha test/","lint":"eslint index.js test/","fix-lint":"eslint index.js test/ --fix","build":"babel index.js -o dist/nested-property.js"},"main":"./dist/nested-property.js","devDependencies":{"@babel/cli":"^7.10.3","@babel/core":"^7.10.3","@babel/preset-env":"^7.11.5","chai":"~1.9.1","eslint":"^6.8.0","mocha":"^8.1.1","sinon":"~1.12.2"},"gitHead":"a47d0c98d5052e32c733fc8a7fc1cf15c2b53b2e","_id":"nested-property@3.0.0","_nodeVersion":"14.9.0","_npmVersion":"6.14.4","dist":{"shasum":"ef2c6ad2a36116e73b380dd493d90056babf6ed0","size":6742,"noattachment":false,"key":"/nested-property/-/nested-property-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/nested-property/download/nested-property-3.0.0.tgz"},"maintainers":[{"name":"podefr","email":""}],"_npmUser":{"name":"podefr","email":"pode.fr@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nested-property_3.0.0_1601218686813_0.47265845731389566"},"_hasShrinkwrap":false,"publish_time":1601218686938,"_cnpm_publish_time":1601218686938,"_cnpmcore_publish_time":"2021-12-16T19:43:08.110Z"},"2.0.2":{"name":"nested-property","description":"Read, write or test a data structure's nested property via a string like 'my.nested.property'. It works through arrays and objects.'","version":"2.0.2","homepage":"https://github.com/cosmosio/nested-property","license":"MIT","author":{"name":"Olivier Scherrer","email":"pode.fr@gmail.com"},"contributors":[{"name":"Igor Barbosa","url":"https://github.com/igor-barbosa"}],"keywords":["nested","property","object","array","read","write","get","set"],"repository":{"type":"git","url":"git+ssh://git@github.com/cosmosio/nested-property.git"},"bugs":{"url":"https://github.com/cosmosio/nested-property/issues"},"scripts":{"test":"mocha test/","debug-test":"mocha debug test/","test-build":"ENTRYPOINT=../dist/nested-property.js mocha test/","lint":"eslint index.js test/","fix-lint":"eslint index.js test/ --fix","build":"babel index.js -o dist/nested-property.js"},"main":"./dist/nested-property.js","devDependencies":{"@babel/cli":"^7.10.3","@babel/core":"^7.10.3","@babel/preset-env":"^7.8.4","chai":"~1.9.1","eslint":"^6.8.0","mocha":"^8.1.1","sinon":"~1.12.2"},"gitHead":"f368eaa2990d57a9c12b49733b2edd84da06d9b3","_id":"nested-property@2.0.2","_nodeVersion":"12.17.0","_npmVersion":"6.14.4","dist":{"shasum":"5523123ecd41c32dcb7e5c4793ee16cf56f7695c","size":5612,"noattachment":false,"key":"/nested-property/-/nested-property-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/nested-property/download/nested-property-2.0.2.tgz"},"maintainers":[{"name":"podefr","email":""}],"_npmUser":{"name":"podefr","email":"pode.fr@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nested-property_2.0.2_1598096429676_0.22252442735683386"},"_hasShrinkwrap":false,"publish_time":1598096429798,"_cnpm_publish_time":1598096429798,"_cnpmcore_publish_time":"2021-12-16T19:43:08.353Z"},"2.0.1":{"name":"nested-property","description":"Read, write or test a data structure's nested property via a string like 'my.nested.property'. It works through arrays and objects.'","version":"2.0.1","homepage":"https://github.com/cosmosio/nested-property","license":"MIT","author":{"name":"Olivier Scherrer","email":"pode.fr@gmail.com"},"contributors":[{"name":"Igor Barbosa","url":"https://github.com/igor-barbosa"}],"keywords":["nested","property","object","array","read","write","get","set"],"repository":{"type":"git","url":"git+ssh://git@github.com/cosmosio/nested-property.git"},"bugs":{"url":"https://github.com/cosmosio/nested-property/issues"},"scripts":{"test":"mocha test/","debug-test":"mocha debug test/","test-build":"ENTRYPOINT=../dist/nested-property.js mocha test/","lint":"eslint index.js test/","fix-lint":"eslint index.js test/ --fix","build":"babel index.js -o dist/nested-property.js"},"main":"./dist/nested-property.js","devDependencies":{"@babel/cli":"^7.10.3","@babel/core":"^7.10.3","@babel/preset-env":"^7.8.4","chai":"~1.9.1","eslint":"^6.8.0","mocha":"^8.0.1","sinon":"~1.12.2"},"gitHead":"09c4d2097eaa596e31604dd1a0de2084e8a6d5ad","_id":"nested-property@2.0.1","_nodeVersion":"12.17.0","_npmVersion":"6.14.4","dist":{"shasum":"52d569825f0cfd2c2d68170d7facedd4466614a5","size":5605,"noattachment":false,"key":"/nested-property/-/nested-property-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/nested-property/download/nested-property-2.0.1.tgz"},"maintainers":[{"name":"podefr","email":""}],"_npmUser":{"name":"podefr","email":"pode.fr@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nested-property_2.0.1_1592942901069_0.8585911920044884"},"_hasShrinkwrap":false,"publish_time":1592942901220,"_cnpm_publish_time":1592942901220,"_cnpmcore_publish_time":"2021-12-16T19:43:08.971Z"},"2.0.0":{"name":"nested-property","description":"Read, write or test a data structure's nested property via a string like 'my.nested.property'. It works through arrays and objects.'","version":"2.0.0","homepage":"https://github.com/cosmosio/nested-property","license":"MIT","author":{"name":"Olivier Scherrer","email":"pode.fr@gmail.com"},"contributors":[{"name":"Igor Barbosa","url":"https://github.com/igor-barbosa"}],"keywords":["nested","property","object","array","read","write","get","set"],"repository":{"type":"git","url":"git+ssh://git@github.com/cosmosio/nested-property.git"},"bugs":{"url":"https://github.com/cosmosio/nested-property/issues"},"scripts":{"test":"mocha test/","debug-test":"mocha debug test/","test-build":"ENTRYPOINT=../dist/nested-property.js mocha test/","lint":"eslint index.js test/","fix-lint":"eslint index.js test/ --fix","build":"babel index.js -o dist/nested-property.js"},"main":"./dist/nested-property.js","devDependencies":{"@babel/cli":"^7.8.4","@babel/core":"^7.8.4","@babel/preset-env":"^7.8.4","chai":"~1.9.1","eslint":"^6.8.0","mocha":"^6.1.4","sinon":"~1.12.2"},"gitHead":"8c150284f5966e393c0b19b7c98296a7675cc867","_id":"nested-property@2.0.0","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"shasum":"6c440733668fecb2a0a25f4108fc78ba6b7aefe9","size":5539,"noattachment":false,"key":"/nested-property/-/nested-property-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/nested-property/download/nested-property-2.0.0.tgz"},"maintainers":[{"name":"podefr","email":""}],"_npmUser":{"name":"podefr","email":"pode.fr@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nested-property_2.0.0_1582067409347_0.31912746555804183"},"_hasShrinkwrap":false,"publish_time":1582067409472,"_cnpm_publish_time":1582067409472,"_cnpmcore_publish_time":"2021-12-16T19:43:09.158Z"},"2.0.0-beta1":{"name":"nested-property","description":"Read, write or test a data structure's nested property via a string like 'my.nested.property'. It works through arrays and objects.'","version":"2.0.0-beta1","homepage":"https://github.com/cosmosio/nested-property","license":"MIT","author":{"name":"Olivier Scherrer","email":"pode.fr@gmail.com"},"contributors":[{"name":"Igor Barbosa","url":"https://github.com/igor-barbosa"}],"keywords":["nested","property","object","array","read","write","get","set"],"repository":{"type":"git","url":"git+ssh://git@github.com/cosmosio/nested-property.git"},"bugs":{"url":"https://github.com/cosmosio/nested-property/issues"},"scripts":{"test":"mocha test/","debug-test":"mocha debug test/","test-build":"ENTRYPOINT=../dist/nested-property.js mocha test/","lint":"eslint index.js test/","fix-lint":"eslint index.js test/ --fix","build":"babel index.js -o dist/nested-property.js"},"main":"./dist/nested-property.js","devDependencies":{"@babel/cli":"^7.8.4","@babel/core":"^7.8.4","@babel/preset-env":"^7.8.4","chai":"~1.9.1","eslint":"^6.8.0","mocha":"^6.1.4","sinon":"~1.12.2"},"gitHead":"300be84596aec3613a4ad82413ce2348f672bbbe","_id":"nested-property@2.0.0-beta1","_nodeVersion":"13.6.0","_npmVersion":"6.13.4","dist":{"shasum":"114907f829040a13d21509714f5037680390fbc8","size":5323,"noattachment":false,"key":"/nested-property/-/nested-property-2.0.0-beta1.tgz","tarball":"http://registry.cnpm.dingdandao.com/nested-property/download/nested-property-2.0.0-beta1.tgz"},"maintainers":[{"name":"podefr","email":""}],"_npmUser":{"name":"podefr","email":"pode.fr@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nested-property_2.0.0-beta1_1580866075940_0.28286693814445596"},"_hasShrinkwrap":false,"publish_time":1580866076125,"_cnpm_publish_time":1580866076125,"_cnpmcore_publish_time":"2021-12-16T19:43:09.767Z"},"1.0.4":{"name":"nested-property","description":"Read, write or test a data structure's nested property via a string like 'my.nested.property'. It works through arrays and objects.'","version":"1.0.4","homepage":"https://github.com/cosmosio/nested-property","license":"MIT","author":{"name":"Olivier Scherrer","email":"pode.fr@gmail.com"},"contributors":[{"name":"Igor Barbosa","url":"https://github.com/igor-barbosa"}],"keywords":["nested","property","object","array","read","write","get","set"],"repository":{"type":"git","url":"git+ssh://git@github.com/cosmosio/nested-property.git"},"bugs":{"url":"https://github.com/cosmosio/nested-property/issues"},"scripts":{"test":"mocha test/"},"main":"index.js","devDependencies":{"chai":"~1.9.1","mocha":"^6.1.4","sinon":"~1.12.2"},"gitHead":"88889dad306aa033067b01488d54e4fd7d96a19e","_id":"nested-property@1.0.4","_nodeVersion":"13.6.0","_npmVersion":"6.13.4","dist":{"shasum":"4068c4289d1f3ac9f367e784502ff342d277ee2f","size":3894,"noattachment":false,"key":"/nested-property/-/nested-property-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/nested-property/download/nested-property-1.0.4.tgz"},"maintainers":[{"name":"podefr","email":""}],"_npmUser":{"name":"podefr","email":"pode.fr@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nested-property_1.0.4_1579383928926_0.8261283763108176"},"_hasShrinkwrap":false,"publish_time":1579383929068,"_cnpm_publish_time":1579383929068,"_cnpmcore_publish_time":"2021-12-16T19:43:09.968Z"},"1.0.3":{"name":"nested-property","description":"Read, write or test a data structure's nested property via a string like 'my.nested.property'. It works through arrays and objects.'","version":"1.0.3","homepage":"https://github.com/cosmosio/nested-property","licenses":[{"type":"MIT","url":"https://raw.github.com/cosmosio/nested-property/master/LICENSE"}],"author":{"name":"Olivier Scherrer","email":"pode.fr@gmail.com"},"contributors":[{"name":"Igor Barbosa","url":"https://github.com/igor-barbosa"}],"keywords":["nested","property","object","array","read","write","get","set"],"repository":{"type":"git","url":"git+ssh://git@github.com/cosmosio/nested-property.git"},"bugs":{"url":"https://github.com/cosmosio/nested-property/issues"},"scripts":{"test":"mocha test/"},"main":"index.js","devDependencies":{"chai":"~1.9.1","mocha":"^6.1.4","sinon":"~1.12.2"},"gitHead":"e689171ac95a9fff115e053c94bba346705ca3a7","_id":"nested-property@1.0.3","_nodeVersion":"13.6.0","_npmVersion":"6.13.4","dist":{"shasum":"f899796c29e4354f3dd40a0c938e3e06e306074d","size":3897,"noattachment":false,"key":"/nested-property/-/nested-property-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/nested-property/download/nested-property-1.0.3.tgz"},"maintainers":[{"name":"podefr","email":""}],"_npmUser":{"name":"podefr","email":"pode.fr@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nested-property_1.0.3_1579146249273_0.38790664551800735"},"_hasShrinkwrap":false,"publish_time":1579146249402,"_cnpm_publish_time":1579146249402,"_cnpmcore_publish_time":"2021-12-16T19:43:10.185Z"},"1.0.2":{"name":"nested-property","description":"Read, write or test a data structure's nested property via a string like 'my.nested.property'. It works through arrays and objects.'","version":"1.0.2","homepage":"https://github.com/cosmosio/nested-property","licenses":[{"type":"MIT","url":"https://raw.github.com/cosmosio/nested-property/master/LICENSE"}],"author":{"name":"Olivier Scherrer","email":"pode.fr@gmail.com"},"contributors":[{"name":"Igor Barbosa","url":"https://github.com/igor-barbosa"}],"keywords":["nested","property","object","array","read","write","get","set"],"repository":{"type":"git","url":"git+ssh://git@github.com/cosmosio/nested-property.git"},"bugs":{"url":"https://github.com/cosmosio/nested-property/issues"},"scripts":{"test":"mocha test/"},"main":"index.js","devDependencies":{"chai":"~1.9.1","mocha":"^6.1.4","sinon":"~1.12.2"},"gitHead":"b997a1c6c51d760a20e03e2a837e423034e62841","_id":"nested-property@1.0.2","_nodeVersion":"10.16.2","_npmVersion":"6.9.0","dist":{"shasum":"684bf909d37c7e124a2f0f6522a027112d228612","size":3808,"noattachment":false,"key":"/nested-property/-/nested-property-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/nested-property/download/nested-property-1.0.2.tgz"},"maintainers":[{"name":"podefr","email":""}],"_npmUser":{"name":"podefr","email":"pode.fr@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nested-property_1.0.2_1574310657331_0.6539535151909184"},"_hasShrinkwrap":false,"publish_time":1574310657544,"_cnpm_publish_time":1574310657544,"_cnpmcore_publish_time":"2021-12-16T19:43:10.394Z"},"1.0.1":{"name":"nested-property","description":"Read, write or test a data structure's nested property via a string like 'my.nested.property'. It works through arrays and objects.'","version":"1.0.1","homepage":"https://github.com/cosmosio/nested-property","licenses":[{"type":"MIT","url":"https://raw.github.com/cosmosio/nested-property/master/LICENSE"}],"author":{"name":"Olivier Scherrer","email":"pode.fr@gmail.com"},"contributors":[{"name":"Igor Barbosa","url":"https://github.com/igor-barbosa"}],"keywords":["nested","property","object","array","read","write","get","set"],"repository":{"type":"git","url":"git+ssh://git@github.com/cosmosio/nested-property.git"},"bugs":{"url":"https://github.com/cosmosio/nested-property/issues"},"scripts":{"test":"mocha test/"},"main":"index.js","devDependencies":{"chai":"~1.9.1","mocha":"^6.1.4","sinon":"~1.12.2"},"gitHead":"2843a6621164cb6a979f421b1667fbfcd4e678cc","_id":"nested-property@1.0.1","_nodeVersion":"12.2.0","_npmVersion":"6.9.0","dist":{"shasum":"2001105b5c69413411b876bba9b86f4316af613f","size":3783,"noattachment":false,"key":"/nested-property/-/nested-property-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/nested-property/download/nested-property-1.0.1.tgz"},"maintainers":[{"name":"podefr","email":""}],"_npmUser":{"name":"podefr","email":"pode.fr@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nested-property_1.0.1_1561243061577_0.7007412387000758"},"_hasShrinkwrap":false,"publish_time":1561243061757,"_cnpm_publish_time":1561243061757,"_cnpmcore_publish_time":"2021-12-16T19:43:10.660Z"},"0.0.7":{"name":"nested-property","description":"Read, write or test a data structure's nested property via a string like 'my.nested.property'. It works through arrays and objects.'","version":"0.0.7","homepage":"https://github.com/cosmosio/nested-property","licenses":[{"type":"MIT","url":"https://raw.github.com/cosmosio/nested-property/master/LICENSE"}],"files":["LICENSE","index.js"],"author":{"name":"Olivier Scherrer","email":"pode.fr@gmail.com"},"keywords":["nested","property","object","array","read","write","get","set"],"repository":{"type":"git","url":"git+ssh://git@github.com/cosmosio/nested-property.git"},"bugs":{"url":"https://github.com/cosmosio/nested-property/issues"},"scripts":{"test":"mocha"},"main":"index.js","devDependencies":{"chai":"~1.9.1","mocha":"~1.18.2","sinon":"~1.12.2"},"gitHead":"0c35a09a8021ab9caf2fc02b1c23436065e6db57","_id":"nested-property@0.0.7","_shasum":"ff222f233ca8793c6828b4117091bea597130f4f","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.8.0","_npmUser":{"name":"podefr","email":"pode.fr@gmail.com"},"maintainers":[{"name":"podefr","email":""}],"dist":{"shasum":"ff222f233ca8793c6828b4117091bea597130f4f","size":3467,"noattachment":false,"key":"/nested-property/-/nested-property-0.0.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/nested-property/download/nested-property-0.0.7.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/nested-property-0.0.7.tgz_1470793488569_0.7277195879723877"},"directories":{},"publish_time":1470793491269,"_hasShrinkwrap":false,"_cnpm_publish_time":1470793491269,"_cnpmcore_publish_time":"2021-12-16T19:43:10.844Z"},"0.0.6":{"name":"nested-property","description":"Read, write or test a data structure's nested property via a string like 'my.nested.property'. It works through arrays and objects.'","version":"0.0.6","homepage":"https://github.com/cosmosio/nested-property","licenses":[{"type":"MIT","url":"https://raw.github.com/cosmosio/nested-property/master/LICENSE"}],"files":["LICENSE","index.js"],"author":{"name":"Olivier Scherrer","email":"pode.fr@gmail.com"},"keywords":["nested","property","object","array","read","write","get","set"],"repository":{"type":"git","url":"git@github.com:cosmosio/nested-property.git"},"bugs":{"url":"https://github.com/cosmosio/nested-property/issues"},"scripts":{"test":"mocha"},"main":"index.js","devDependencies":{"chai":"~1.9.1","mocha":"~1.18.2","sinon":"~1.12.2"},"_id":"nested-property@0.0.6","dist":{"shasum":"3c5b79651146ae17fbb901aa29ab8903fb1b09e1","size":3411,"noattachment":false,"key":"/nested-property/-/nested-property-0.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/nested-property/download/nested-property-0.0.6.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"podefr","email":"pode.fr@gmail.com"},"maintainers":[{"name":"podefr","email":""}],"directories":{},"publish_time":1425272400600,"_hasShrinkwrap":false,"_cnpm_publish_time":1425272400600,"_cnpmcore_publish_time":"2021-12-16T19:43:11.058Z"},"0.0.5":{"name":"nested-property","description":"Read, write or test a data structure's nested property via a string like 'my.nested.property'. It works through arrays and objects.'","version":"0.0.5","homepage":"https://github.com/cosmosio/nested-property","licenses":[{"type":"MIT","url":"https://raw.github.com/cosmosio/nested-property/master/LICENSE"}],"files":["LICENSE","index.js"],"author":{"name":"Olivier Scherrer","email":"pode.fr@gmail.com"},"keywords":["nested","property","object","array","read","write","get","set"],"repository":{"type":"git","url":"git@github.com:cosmosio/nested-property.git"},"bugs":{"url":"https://github.com/cosmosio/nested-property/issues"},"scripts":{"test":"mocha"},"main":"index.js","devDependencies":{"chai":"~1.9.1","mocha":"~1.18.2","sinon":"~1.12.2"},"_id":"nested-property@0.0.5","dist":{"shasum":"5994eb59b9d1f4f930c832f71fb55c2a15dd36b9","size":3343,"noattachment":false,"key":"/nested-property/-/nested-property-0.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/nested-property/download/nested-property-0.0.5.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"podefr","email":"pode.fr@gmail.com"},"maintainers":[{"name":"podefr","email":""}],"directories":{},"publish_time":1421718278658,"_hasShrinkwrap":false,"_cnpm_publish_time":1421718278658,"_cnpmcore_publish_time":"2021-12-16T19:43:11.243Z"},"0.0.4":{"name":"nested-property","description":"Read, write or test a data structure's nested property via a string like 'my.nested.property'. It works through arrays and objects.'","version":"0.0.4","homepage":"https://github.com/cosmosio/nested-property","licenses":[{"type":"MIT","url":"https://raw.github.com/cosmosio/nested-property/master/LICENSE"}],"files":["LICENSE","index.js"],"author":{"name":"Olivier Scherrer","email":"pode.fr@gmail.com"},"keywords":["nested","property","object","array","read","write","get","set"],"repository":{"type":"git","url":"git@github.com:cosmosio/nested-property.git"},"bugs":{"url":"https://github.com/cosmosio/nested-property/issues"},"scripts":{"test":"mocha"},"main":"index.js","devDependencies":{"chai":"~1.9.1","mocha":"~1.18.2","sinon":"~1.12.2"},"_id":"nested-property@0.0.4","dist":{"shasum":"d7540b67c6f721b5b35ca88c2daf3e2f5b283ea3","size":2812,"noattachment":false,"key":"/nested-property/-/nested-property-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/nested-property/download/nested-property-0.0.4.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"podefr","email":"pode.fr@gmail.com"},"maintainers":[{"name":"podefr","email":""}],"directories":{},"publish_time":1421383161865,"_hasShrinkwrap":false,"_cnpm_publish_time":1421383161865,"_cnpmcore_publish_time":"2021-12-16T19:43:11.464Z"},"0.0.3":{"name":"nested-property","description":"Read or write an array or object's nested property via a string like 'my.nested.property'","version":"0.0.3","homepage":"https://github.com/cosmosio/nested-property","licenses":[{"type":"MIT","url":"https://raw.github.com/cosmosio/nested-property/master/LICENSE"}],"files":["LICENSE","index.js"],"author":{"name":"Olivier Scherrer","email":"pode.fr@gmail.com"},"keywords":["nested","property","object","array","read","write","get","set"],"repository":{"type":"git","url":"git@github.com:cosmosio/nested-property.git"},"bugs":{"url":"https://github.com/cosmosio/nested-property/issues"},"scripts":{"test":"mocha"},"main":"index.js","devDependencies":{"chai":"~1.9.1","mocha":"~1.18.2"},"_id":"nested-property@0.0.3","dist":{"shasum":"7e4766a7316b75b25dbbbfdac7442f830fa2b6d6","size":2548,"noattachment":false,"key":"/nested-property/-/nested-property-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/nested-property/download/nested-property-0.0.3.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"podefr","email":"pode.fr@gmail.com"},"maintainers":[{"name":"podefr","email":""}],"directories":{},"publish_time":1421212996477,"_hasShrinkwrap":false,"_cnpm_publish_time":1421212996477,"_cnpmcore_publish_time":"2021-12-16T19:43:11.682Z"},"0.0.2":{"name":"nested-property","description":"Read or write an array or object's nested property via a string like 'my.nested.property'","version":"0.0.2","homepage":"https://github.com/cosmosio/nested-property","licenses":[{"type":"MIT","url":"https://raw.github.com/cosmosio/nested-property/master/LICENSE"}],"files":["LICENSE","index.js"],"author":{"name":"Olivier Scherrer","email":"pode.fr@gmail.com"},"keywords":["nested","property","object","array","read","write","get","set"],"repository":{"type":"git","url":"git@github.com:cosmosio/nested-property.git"},"bugs":{"url":"https://github.com/cosmosio/nested-property/issues"},"scripts":{"test":"mocha"},"main":"index.js","devDependencies":{"chai":"~1.9.1","mocha":"~1.18.2"},"_id":"nested-property@0.0.2","dist":{"shasum":"c5252fe7e28522dc267a801dbeca922178b4861e","size":2262,"noattachment":false,"key":"/nested-property/-/nested-property-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/nested-property/download/nested-property-0.0.2.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"podefr","email":"pode.fr@gmail.com"},"maintainers":[{"name":"podefr","email":""}],"directories":{},"publish_time":1396917777039,"_hasShrinkwrap":false,"_cnpm_publish_time":1396917777039,"_cnpmcore_publish_time":"2021-12-16T19:43:11.950Z"},"0.0.1":{"name":"nested-property","description":"Read or write an array or object's nested property via a string like 'my.nested.property'","version":"0.0.1","homepage":"https://github.com/cosmosio/nested-property","licenses":[{"type":"MIT","url":"https://raw.github.com/cosmosio/nested-property/master/LICENSE"}],"files":["LICENSE","index.js"],"author":{"name":"Olivier Scherrer","email":"pode.fr@gmail.com"},"keywords":["nested","property","object","array","read","write","get","set"],"repository":{"type":"git","url":"git@github.com:cosmosio/nested-property.git"},"bugs":{"url":"https://github.com/cosmosio/nested-property/issues"},"scripts":{"test":"mocha"},"main":"index.js","devDependencies":{"chai":"~1.9.1","mocha":"~1.18.2"},"_id":"nested-property@0.0.1","dist":{"shasum":"a95748bf3dbe73df5707aaabd00b43e078df9b0d","size":2265,"noattachment":false,"key":"/nested-property/-/nested-property-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/nested-property/download/nested-property-0.0.1.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"podefr","email":"pode.fr@gmail.com"},"maintainers":[{"name":"podefr","email":""}],"directories":{},"publish_time":1396323142848,"_hasShrinkwrap":false,"_cnpm_publish_time":1396323142848,"_cnpmcore_publish_time":"2021-12-16T19:43:12.166Z"}},"readme":"![npm](https://img.shields.io/npm/dw/nested-property) \n![Actively Maintained](https://img.shields.io/badge/Maintenance%20Level-Actively%20Maintained-green.svg)\n\n# Nested property\n\nTraverse a deeply nested JS data structure to get, set values, or test if values are part of the data structure.\nNested property offers a simple syntax to define a path to access a value with.\n\nFor instance:\n\n```js\nconst data = { \n  a: {\n    b: [\n      10,\n      20\n    ]\n  }\n };\n\nnestedProperty.get(data, \"a.b.1\"); // returns 20, or sdata.a.b[1]\n```\n\nThe syntax also supports array wildcards to access all items within an array:\n\n```js\nconst array = [\n  { ssn: \"123-456-7890\", name: \"alice\" },\n  { ssn: \"234-567-8901\", name: \"bob\" },\n  { ssn: \"456-789-0123\", name: \"charlie\" }\n]\n\nnestedProperty.set(array, \"+.ssn\", \"<redacted>\"); // sets all `ssn` values to <redacted>\n```\n\n\n## Install\n\n```bash\nnpm install nested-property\n```\n\n## Use\n\nRequire nested-property:\n\n```bash\nvar nestedProperty = require(\"nested-property\");\n```\n\n### nestedProperty.get(data, \"path\")\n\n__You can get a nested property from an object:__\n\n```js\nvar object = {\n  a: {\n    b: {\n      c: {\n        d: 5\n      }\n    }\n  }\n};\n\nnestedProperty.get(object, \"a\"); // returns object.a\nnestedProperty.get(object, \"a.b.c\"); // returns object.a.b.c\nnestedProperty.get(object, \"a.b.c.d\"); // returns 5\nnestedProperty.get(object, \"a.d.c\"); // returns undefined\nnestedProperty.get(object); // returns object\nnestedProperty.get(null); // returns null\n```\n\nIt also works through arrays:\n\n```js\nvar array = [{\n  a: {\n    b: [0, 1]\n  }\n  }];\n\nnestedProperty.get(array, \"0\"); // returns array[0]\nnestedProperty.get(array, \"0.a.b\"); // returns array[0].a.b\nnestedProperty.get(array, \"0.a.b.0\"); // returns 0\nnestedProperty.get(array, \"1.a.b.c\"); // returns undefined\n```\n\nYou may also use wildcards to access multiple values:\n\n```js\nvar array = [\n  { a: 0, b: 1, c: 2 },\n  { a: 10, b: 11, c: 12 },\n  { a: 20, b: 21, c: 22 }\n]\n\nnestedProperty.get(array, \"+.b\"); // returns [1, 11, 21]\n```\n\n### nestedProperty.set(data, \"path\", value)\n\n__You can set a nested property on an object:__\n\n```js\nvar object = {\n  a: {\n    b: {\n      c: {\n        d: 5\n      }\n    }\n  }\n};\n\nnestedProperty.set(object, \"a\", 1); // object.a == 1\nnestedProperty.set(object, \"a.b.c\", 1337); // object.a.b.c == 1337\nnestedProperty.set(object, \"e.f.g\", 1); // object.e.f.g == 1, it creates the missing objects!\nnestedProperty.set(object); // returns object\nnestedProperty.set(null); // returns null\n```\n\nYou can also set a nested property through arrays:\n\n```js\nvar array = [\n {\n   a: [0, 1]\n }\n];\n\nnestedProperty.set(array, \"0.a.0\", 10); // array[0].a[0] == 10\nnestedProperty.set(array, \"0.b.c\", 1337); // array[0].b.c == 1337\n```\n\n\nYou may also use wildcards to set multiple values:\n\n```js\nvar array = [\n  { a: 0, b: 1, c: 2 },\n  { a: 10, b: 11, c: 12 },\n  { a: 20, b: 21, c: 22 }\n]\n\nnestedProperty.set(array, \"+.b\", 0); // array[0].b === 0, array[1].b === 0, array[2].b === 0 \n```\n\n### nestedProperty.has(data, \"path\")\n\n__You can also test if a data structure has a nested property:__\n\n```js\nvar array = [\n {\n   a: [0, 1]\n }\n];\n\nnestedProperty.has(array, \"0.a\"); // true\nnestedProperty.has(array, \"0.a.1\"); // true\nnestedProperty.has(array, \"0.a.2\"); // false\nnestedProperty.has(array, \"1.a.0\"); // false\n```\n\nThe example shows that it works through array, but of course, plain objects are fine too.\n\nIf it must be an \"own\" property (i.e. not in the prototype chain) you can use the own option:\n\n```js\nfunction DataStructure() {}\nDataStructure.prototype.prop = true;\n\nvar obj = new DataStructure();\n\nnestedProperty.has(obj, \"prop\", { own: true }); // false\nnestedProperty.has(obj, \"prop\"); // true\n```\n\nAlternatively, you can use the hasOwn function:\n\n```js\nvar obj = Object.create({ prop: true });\n\nnestedProperty.hasOwn(obj, \"prop\"); // false\n```\n\nJust like other methods, you may also use array wildcards. For instance, testing if any item in an array has a given property:\n\n```js\nvar array = [\n  { a: 0, b: 1, c: 2 },\n  { a: 10, b: 11, c: 12, d: 13 },\n  { a: 20, b: 21, c: 22 }\n]\n\nnestedProperty.has(array, \"+.d\"); // returns true, since array[1].d exists\n```\n\n### nestedProperty.isIn(data, \"path\", value)\n\n__And finally, you can test if an object is on the path to a nested property:__\n\n```js\nvar obj = {\n    nested: [\n        {\n            property: true\n        }\n    ]\n};\n\nnestedProperty.isIn(obj, \"nested.0.property\", obj); // true\nnestedProperty.isIn(obj, \"nested.0.property\", obj.nested); // true\nnestedProperty.isIn(obj, \"nested.0.property\", obj.nested[0]); // true\n\nnestedProperty.isIn(obj, \"nested.0.property\", {}); // false\n```\n\nThe path doesn't have to be completely valid to return true, as long as the value exists within the valid portion.\n\n```js\nnestedProperty.isIn(obj, \"nested.0.property.foo.bar.path\", obj.nested[0]); // true\n```\n\nUnless the `validPath` option is set to `true`, in this case the full path needs to be valid:\n\n```js\nnestedProperty.isIn(obj, \"nested.0.property.foo.bar.path\", obj.nested[0], { validPath: true }); // false\n```\n\nNote that if instead of an object you give it the value of the nested property, it'll return true:\n\n```js\nnestedProperty.isIn(obj, \"nested.0.property\", obj.nested[0].property); // true\nnestedProperty.isIn(obj, \"nested.0.property\", true); // true\n```\n\n### nestedProperty.ObjectPrototypeMutationError\n\n__Note that it's not permitted to mutate Object.prototype:__\n\n```\nnestedProperty.set({}, '__protot__.a', 1); // throws nestedProperty.ObjectPrototypeMutationError\n```\n\n# LICENSE\n\nMIT\n","_attachments":{},"homepage":"https://github.com/cosmosio/nested-property","bugs":{"url":"https://github.com/cosmosio/nested-property/issues"},"license":"MIT"}