%PDF- %PDF-
Direktori : /home/opti/.npm/registry.npmjs.org/undefsafe/ |
Current File : /home/opti/.npm/registry.npmjs.org/undefsafe/.cache.json |
{"_id":"undefsafe","_rev":"13-4c577f8611cd9a1fcbda9a8e5dac9415","name":"undefsafe","description":"Undefined safe way of extracting object properties","dist-tags":{"latest":"2.0.2"},"versions":{"0.0.1":{"name":"undefsafe","version":"0.0.1","description":"Undefined safe way of extracting object properties","main":"lib/undefsafe.js","directories":{"test":"test"},"scripts":{"test":"node_modules/mocha/bin/_mocha --ui bdd test/**/*.test.js"},"keywords":["undefined"],"author":{"name":"Remy Sharp"},"license":"MIT / http://rem.mit-license.org","devDependencies":{"mocha":"~1.16.2"},"_id":"undefsafe@0.0.1","dist":{"shasum":"774beb0d2df44f09d4a68fb36e9cf5f995834440","tarball":"https://registry.npmjs.org/undefsafe/-/undefsafe-0.0.1.tgz"},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"remy","email":"remy@remysharp.com"},"maintainers":[{"name":"remy","email":"remy@remysharp.com"}]},"0.0.2":{"name":"undefsafe","version":"0.0.2","description":"Undefined safe way of extracting object properties","main":"lib/undefsafe.js","directories":{"test":"test"},"scripts":{"test":"node_modules/mocha/bin/_mocha --ui bdd test/**/*.test.js"},"repository":{"type":"git","url":"git://github.com/remy/undefsafe.git"},"keywords":["undefined"],"author":{"name":"Remy Sharp"},"license":"MIT / http://rem.mit-license.org","devDependencies":{"mocha":"~1.16.2"},"bugs":{"url":"https://github.com/remy/undefsafe/issues"},"homepage":"https://github.com/remy/undefsafe","_id":"undefsafe@0.0.2","dist":{"shasum":"ef37873e9962724f523861c051cd381067711319","tarball":"https://registry.npmjs.org/undefsafe/-/undefsafe-0.0.2.tgz"},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"remy","email":"remy@remysharp.com"},"maintainers":[{"name":"remy","email":"remy@remysharp.com"}]},"0.0.3":{"name":"undefsafe","version":"0.0.3","description":"Undefined safe way of extracting object properties","main":"lib/undefsafe.js","directories":{"test":"test"},"scripts":{"test":"node_modules/mocha/bin/_mocha --ui bdd test/**/*.test.js"},"repository":{"type":"git","url":"git://github.com/remy/undefsafe.git"},"keywords":["undefined"],"author":{"name":"Remy Sharp"},"license":"MIT / http://rem.mit-license.org","devDependencies":{"mocha":"~1.16.2"},"gitHead":"435db2701b5ddccc0d575c669df8bdc96918889b","bugs":{"url":"https://github.com/remy/undefsafe/issues"},"homepage":"https://github.com/remy/undefsafe","_id":"undefsafe@0.0.3","_shasum":"ecca3a03e56b9af17385baac812ac83b994a962f","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"remy","email":"remy@remysharp.com"},"maintainers":[{"name":"remy","email":"remy@remysharp.com"}],"dist":{"shasum":"ecca3a03e56b9af17385baac812ac83b994a962f","tarball":"https://registry.npmjs.org/undefsafe/-/undefsafe-0.0.3.tgz"}},"1.0.0":{"name":"undefsafe","version":"1.0.0","description":"Undefined safe way of extracting object properties","main":"lib/undefsafe.js","tonicExampleFilename":"example.js","directories":{"test":"test"},"scripts":{"test":"node_modules/mocha/bin/_mocha --ui bdd test/**/*.test.js"},"repository":{"type":"git","url":"git://github.com/remy/undefsafe.git"},"keywords":["undefined"],"author":{"name":"Remy Sharp"},"license":"MIT / http://rem.mit-license.org","devDependencies":{"mocha":"~1.16.2"},"gitHead":"951081b1557c100545fc2e598e42c736b6a6d1fd","bugs":{"url":"https://github.com/remy/undefsafe/issues"},"homepage":"https://github.com/remy/undefsafe#readme","_id":"undefsafe@1.0.0","_shasum":"1394c2524040f3e88031b04e7f6ba6a25e0d8065","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"remy","email":"remy@leftlogic.com"},"dist":{"shasum":"1394c2524040f3e88031b04e7f6ba6a25e0d8065","tarball":"https://registry.npmjs.org/undefsafe/-/undefsafe-1.0.0.tgz"},"maintainers":[{"name":"remy","email":"remy@remysharp.com"}]},"1.1.0":{"name":"undefsafe","description":"Undefined safe way of extracting object properties","main":"lib/undefsafe.js","tonicExampleFilename":"example.js","directories":{"test":"test"},"scripts":{"test":"tap test/**/*.test.js -R spec","cover":"tap test/*.test.js --cov --coverage-report=lcov","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"repository":{"type":"git","url":"git+https://github.com/remy/undefsafe.git"},"keywords":["undefined"],"author":{"name":"Remy Sharp"},"license":"MIT","devDependencies":{"semantic-release":"^4.3.5","tap":"^5.7.1"},"version":"1.1.0","gitHead":"aab63c28b2610d4878fa4b74aea6b87d4bca207c","bugs":{"url":"https://github.com/remy/undefsafe/issues"},"homepage":"https://github.com/remy/undefsafe#readme","_id":"undefsafe@1.1.0","_shasum":"4f74b1967cb775b096db99dc096a86ec1d28acbd","_from":".","_npmVersion":"2.15.3","_nodeVersion":"4.4.3","_npmUser":{"name":"remy","email":"remy@leftlogic.com"},"dist":{"shasum":"4f74b1967cb775b096db99dc096a86ec1d28acbd","tarball":"https://registry.npmjs.org/undefsafe/-/undefsafe-1.1.0.tgz"},"maintainers":[{"name":"remy","email":"remy@remysharp.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/undefsafe-1.1.0.tgz_1460581064225_0.9182229312136769"}},"1.2.0":{"name":"undefsafe","description":"Undefined safe way of extracting object properties","main":"lib/undefsafe.js","tonicExampleFilename":"example.js","directories":{"test":"test"},"scripts":{"test":"tap test/**/*.test.js -R spec","cover":"tap test/*.test.js --cov --coverage-report=lcov","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"repository":{"type":"git","url":"git+https://github.com/remy/undefsafe.git"},"keywords":["undefined"],"author":{"name":"Remy Sharp"},"license":"MIT","devDependencies":{"semantic-release":"^4.3.5","tap":"^5.7.1","tap-only":"0.0.5"},"dependencies":{"debug":"^2.2.0"},"version":"1.2.0","gitHead":"a8ec59cef4fbafd0afe8fe4803fc7701ef5fe146","bugs":{"url":"https://github.com/remy/undefsafe/issues"},"homepage":"https://github.com/remy/undefsafe#readme","_id":"undefsafe@1.2.0","_shasum":"e6888286cbb15340cabe20118df9b8db531351a4","_from":".","_npmVersion":"2.15.10","_nodeVersion":"4.5.0","_npmUser":{"name":"remy","email":"remy@leftlogic.com"},"dist":{"shasum":"e6888286cbb15340cabe20118df9b8db531351a4","tarball":"https://registry.npmjs.org/undefsafe/-/undefsafe-1.2.0.tgz"},"maintainers":[{"name":"remy","email":"remy@remysharp.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/undefsafe-1.2.0.tgz_1471977754816_0.644012144068256"}},"1.3.0":{"name":"undefsafe","description":"Undefined safe way of extracting object properties","main":"lib/undefsafe.js","tonicExampleFilename":"example.js","directories":{"test":"test"},"scripts":{"test":"tap test/**/*.test.js -R spec","cover":"tap test/*.test.js --cov --coverage-report=lcov","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"repository":{"type":"git","url":"git+https://github.com/remy/undefsafe.git"},"keywords":["undefined"],"author":{"name":"Remy Sharp"},"license":"MIT","devDependencies":{"semantic-release":"^4.3.5","tap":"^5.7.1","tap-only":"0.0.5"},"dependencies":{"debug":"^2.2.0"},"version":"1.3.0","gitHead":"f6a73696fa00d6aa73c0fb0557725b94a266e57d","bugs":{"url":"https://github.com/remy/undefsafe/issues"},"homepage":"https://github.com/remy/undefsafe#readme","_id":"undefsafe@1.3.0","_shasum":"fecdc37e3970986f88c6b885178b3a433faac0de","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.7.3","_npmUser":{"name":"remy","email":"remy@leftlogic.com"},"dist":{"shasum":"fecdc37e3970986f88c6b885178b3a433faac0de","tarball":"https://registry.npmjs.org/undefsafe/-/undefsafe-1.3.0.tgz"},"maintainers":[{"name":"remy","email":"remy@remysharp.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/undefsafe-1.3.0.tgz_1486571184904_0.12533880630508065"}},"1.3.1":{"name":"undefsafe","description":"Undefined safe way of extracting object properties","main":"lib/undefsafe.js","tonicExampleFilename":"example.js","directories":{"test":"test"},"scripts":{"test":"tap test/**/*.test.js -R spec","cover":"tap test/*.test.js --cov --coverage-report=lcov","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"repository":{"type":"git","url":"git+https://github.com/remy/undefsafe.git"},"keywords":["undefined"],"author":{"name":"Remy Sharp"},"license":"MIT","devDependencies":{"semantic-release":"^4.3.5","tap":"^5.7.1","tap-only":"0.0.5"},"dependencies":{"debug":"^2.2.0"},"version":"1.3.1","gitHead":"9c7867e6dc75ee8842b4bbfdfeba9e3ccf3bc616","bugs":{"url":"https://github.com/remy/undefsafe/issues"},"homepage":"https://github.com/remy/undefsafe#readme","_id":"undefsafe@1.3.1","_shasum":"168853130e15d57a5842a294bd0f203f1dd734ac","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.7.3","_npmUser":{"name":"remy","email":"remy@leftlogic.com"},"dist":{"shasum":"168853130e15d57a5842a294bd0f203f1dd734ac","tarball":"https://registry.npmjs.org/undefsafe/-/undefsafe-1.3.1.tgz"},"maintainers":[{"name":"remy","email":"remy@remysharp.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/undefsafe-1.3.1.tgz_1486572957907_0.8126757687423378"}},"2.0.0":{"name":"undefsafe","description":"Undefined safe way of extracting object properties","main":"lib/undefsafe.js","tonicExampleFilename":"example.js","directories":{"test":"test"},"scripts":{"test":"tap test/**/*.test.js -R spec","cover":"tap test/*.test.js --cov --coverage-report=lcov","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"repository":{"type":"git","url":"git+https://github.com/remy/undefsafe.git"},"keywords":["undefined"],"author":{"name":"Remy Sharp"},"license":"MIT","devDependencies":{"semantic-release":"^4.3.5","tap":"^5.7.1","tap-only":"0.0.5"},"dependencies":{"debug":"^2.2.0"},"version":"2.0.0","gitHead":"2d38e723b7a10a9d6944678bef056a5b1b132f6d","bugs":{"url":"https://github.com/remy/undefsafe/issues"},"homepage":"https://github.com/remy/undefsafe#readme","_id":"undefsafe@2.0.0","_shasum":"b4e83bd3d50587e1f736c61dd2d4ec24b7e495b4","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.7.3","_npmUser":{"name":"remy","email":"remy@leftlogic.com"},"dist":{"shasum":"b4e83bd3d50587e1f736c61dd2d4ec24b7e495b4","tarball":"https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.0.tgz"},"maintainers":[{"name":"remy","email":"remy@remysharp.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/undefsafe-2.0.0.tgz_1486909862847_0.5750529782380909"}},"2.0.1":{"name":"undefsafe","description":"Undefined safe way of extracting object properties","main":"lib/undefsafe.js","tonicExampleFilename":"example.js","directories":{"test":"test"},"scripts":{"test":"tap test/**/*.test.js -R spec","cover":"tap test/*.test.js --cov --coverage-report=lcov","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"repository":{"type":"git","url":"git+https://github.com/remy/undefsafe.git"},"keywords":["undefined"],"author":{"name":"Remy Sharp"},"license":"MIT","devDependencies":{"semantic-release":"^4.3.5","tap":"^5.7.1","tap-only":"0.0.5"},"dependencies":{"debug":"^2.2.0"},"version":"2.0.1","gitHead":"29c8d32ee4e8780b81b6964a54e2b049194f4670","bugs":{"url":"https://github.com/remy/undefsafe/issues"},"homepage":"https://github.com/remy/undefsafe#readme","_id":"undefsafe@2.0.1","_shasum":"03b2f2a16c94556e14b2edef326cd66aaf82707a","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.7.3","_npmUser":{"name":"remy","email":"remy@leftlogic.com"},"dist":{"shasum":"03b2f2a16c94556e14b2edef326cd66aaf82707a","tarball":"https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.1.tgz"},"maintainers":[{"name":"remy","email":"remy@remysharp.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/undefsafe-2.0.1.tgz_1487686936366_0.436940515646711"}},"2.0.2":{"name":"undefsafe","description":"Undefined safe way of extracting object properties","main":"lib/undefsafe.js","tonicExampleFilename":"example.js","directories":{"test":"test"},"scripts":{"test":"tap test/**/*.test.js -R spec","cover":"tap test/*.test.js --cov --coverage-report=lcov","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"repository":{"type":"git","url":"git+https://github.com/remy/undefsafe.git"},"keywords":["undefined"],"author":{"name":"Remy Sharp"},"license":"MIT","devDependencies":{"semantic-release":"^4.3.5","tap":"^5.7.1","tap-only":"0.0.5"},"dependencies":{"debug":"^2.2.0"},"version":"2.0.2","gitHead":"e4180bac3c9d4571dc542eca7d53b4f14c8603fe","bugs":{"url":"https://github.com/remy/undefsafe/issues"},"homepage":"https://github.com/remy/undefsafe#readme","_id":"undefsafe@2.0.2","_shasum":"225f6b9e0337663e0d8e7cfd686fc2836ccace76","_from":".","_npmVersion":"2.15.12","_nodeVersion":"4.8.7","_npmUser":{"name":"remy","email":"remy@leftlogic.com"},"dist":{"shasum":"225f6b9e0337663e0d8e7cfd686fc2836ccace76","tarball":"https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.2.tgz","fileCount":9,"unpackedSize":6895},"maintainers":[{"name":"remy","email":"remy@leftlogic.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/undefsafe_2.0.2_1518681535273_0.5962650788047354"}}},"readme":"# undefsafe\n\nSimple *function* for retrieving deep object properties without getting \"Cannot read property 'X' of undefined\"\n\nCan also be used to safely set deep values.\n\n## Usage\n\n```js\nvar object = {\n a: {\n b: {\n c: 1,\n d: [1,2,3],\n e: 'remy'\n }\n }\n};\n\nconsole.log(undefsafe(object, 'a.b.e')); // \"remy\"\nconsole.log(undefsafe(object, 'a.b.not.found')); // undefined\n```\n\nDemo: [https://jsbin.com/eroqame/3/edit?js,console](https://jsbin.com/eroqame/3/edit?js,console)\n\n## Setting\n\n```js\nvar object = {\n a: {\n b: [1,2,3]\n }\n};\n\n// modified object\nvar res = undefsafe(object, 'a.b.0', 10);\n\nconsole.log(object); // { a: { b: [10, 2, 3] } }\nconsole.log(res); // 1 - previous value\n```\n\n## Star rules in paths\n\nAs of 1.2.0, `undefsafe` supports a `*` in the path if you want to search all of the properties (or array elements) for a particular element.\n\nThe function will only return a single result, either the 3rd argument validation value, or the first positive match. For example, the following github data:\n\n```js\nconst githubData = {\n commits: [{\n modified: [\n \"one\",\n \"two\"\n ]\n }, /* ... */ ]\n };\n\n// first modified file found in the first commit\nconsole.log(undefsafe(githubData, 'commits.*.modified.0'));\n\n// returns `two` or undefined if not found\nconsole.log(undefsafe(githubData, 'commits.*.modified.*', 'two'));\n```\n","maintainers":[{"name":"remy","email":"remy@leftlogic.com"}],"time":{"modified":"2018-02-15T07:58:56.747Z","created":"2014-01-08T14:40:07.358Z","0.0.1":"2014-01-08T14:40:07.358Z","0.0.2":"2014-01-14T17:39:43.502Z","0.0.3":"2015-04-13T14:22:50.641Z","1.0.0":"2016-01-29T16:44:06.065Z","1.1.0":"2016-04-13T20:57:46.585Z","1.2.0":"2016-08-23T18:42:36.599Z","1.3.0":"2017-02-08T16:26:26.666Z","1.3.1":"2017-02-08T16:55:58.475Z","2.0.0":"2017-02-12T14:31:03.511Z","2.0.1":"2017-02-21T14:22:18.204Z","2.0.2":"2018-02-15T07:58:55.955Z"},"homepage":"https://github.com/remy/undefsafe#readme","keywords":["undefined"],"repository":{"type":"git","url":"git+https://github.com/remy/undefsafe.git"},"author":{"name":"Remy Sharp"},"bugs":{"url":"https://github.com/remy/undefsafe/issues"},"license":"MIT","readmeFilename":"README.md","users":{"nickeltobias":true},"_attachments":{},"_etag":"W/\"0b863dace2c536df4c680930ab0f0b90\"","_lastModified":"Sun, 27 May 2018 20:25:45 GMT"}