{"_id":"pathval","_rev":"3848615","name":"pathval","description":"Object value retrieval given a string path","dist-tags":{"latest":"2.0.1"},"maintainers":[{"name":"chaijs","email":"chaijs@keithcirkel.co.uk"}],"time":{"modified":"2025-09-01T00:48:10.000Z","created":"2013-11-24T18:10:08.847Z","2.0.1":"2025-06-25T08:27:10.669Z","2.0.0":"2023-07-21T19:56:52.805Z","1.1.1":"2021-01-26T10:18:37.054Z","1.1.0":"2016-10-11T21:45:01.397Z","1.0.0":"2016-10-08T21:59:52.585Z","0.2.1":"2016-10-05T21:37:43.749Z","0.2.0":"2016-10-05T00:19:41.579Z","0.1.1":"2013-12-30T23:14:27.044Z","0.1.0":"2013-12-28T10:40:59.775Z","0.0.1":"2013-11-24T18:10:08.847Z"},"users":{"focusaurus":true,"justjavac":true},"author":{"name":"Veselin Todorov","email":"hi@vesln.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/chaijs/pathval.git"},"versions":{"2.0.1":{"name":"pathval","description":"Object value retrieval given a string path","homepage":"https://github.com/chaijs/pathval","version":"2.0.1","keywords":["pathval","value retrieval","chai util"],"license":"MIT","author":{"name":"Veselin Todorov","email":"hi@vesln.com"},"main":"./index.js","type":"module","repository":{"type":"git","url":"git+ssh://git@github.com/chaijs/pathval.git"},"scripts":{"lint":"eslint --ignore-path .gitignore .","lint:fix":"npm run lint -- --fix","semantic-release":"semantic-release pre && npm publish && semantic-release post","pretest":"npm run lint","test":"npm run test:node && npm run test:browser","test:browser":"web-test-runner test/index.js --node-resolve","test:node":"mocha","prepare":"husky"},"eslintConfig":{"extends":["strict/es6"],"parserOptions":{"sourceType":"module"},"env":{"es6":true},"globals":{"HTMLElement":false},"rules":{"complexity":0,"max-statements":0}},"devDependencies":{"@web/test-runner":"^0.17.0","eslint":"^7.13.0","eslint-config-strict":"^14.0.1","eslint-plugin-filenames":"^1.3.2","husky":"^9.1.7","mocha":"^8.2.1","semantic-release":"^17.2.2","simple-assert":"^2.0.0","validate-commit-msg":"^2.14.0"},"engines":{"node":">= 14.16"},"_id":"pathval@2.0.1","gitHead":"35c829e6648f068ade959c17afd28a9eaee31524","bugs":{"url":"https://github.com/chaijs/pathval/issues"},"_nodeVersion":"22.16.0","_npmVersion":"10.9.2","dist":{"shasum":"8855c5a2899af072d6ac05d11e46045ad0dc605d","size":4869,"noattachment":false,"key":"/pathval/-/pathval-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/pathval/download/pathval-2.0.1.tgz"},"_npmUser":{"name":"chaijs","email":"chaijs@keithcirkel.co.uk","actor":{"name":"chaijs","email":"chaijs@keithcirkel.co.uk","type":"user"}},"directories":{},"maintainers":[{"name":"chaijs","email":"chaijs@keithcirkel.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pathval_2.0.1_1750840030487_0.27284189070639053"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-06-25T08:27:10.669Z","publish_time":1750840030669,"_source_registry_name":"default","_cnpm_publish_time":1750840030669},"2.0.0":{"name":"pathval","description":"Object value retrieval given a string path","homepage":"https://github.com/chaijs/pathval","version":"2.0.0","keywords":["pathval","value retrieval","chai util"],"license":"MIT","author":{"name":"Veselin Todorov","email":"hi@vesln.com"},"main":"./index.js","type":"module","repository":{"type":"git","url":"git+ssh://git@github.com/chaijs/pathval.git"},"scripts":{"build":"browserify --standalone pathval -o pathval.js","lint":"eslint --ignore-path .gitignore .","lint:fix":"npm run lint -- --fix","prepublish":"npm run build","semantic-release":"semantic-release pre && npm publish && semantic-release post","pretest":"npm run lint","test":"npm run test:node && npm run test:browser","test:browser":"web-test-runner test/index.js --node-resolve","test:node":"mocha"},"config":{"ghooks":{"commit-msg":"validate-commit-msg"}},"eslintConfig":{"extends":["strict/es6"],"parserOptions":{"sourceType":"module"},"env":{"es6":true},"globals":{"HTMLElement":false},"rules":{"complexity":0,"max-statements":0}},"devDependencies":{"@web/test-runner":"^0.17.0","browserify":"^17.0.0","browserify-istanbul":"^3.0.1","eslint":"^7.13.0","eslint-config-strict":"^14.0.1","eslint-plugin-filenames":"^1.3.2","ghooks":"^2.0.4","mocha":"^8.2.1","semantic-release":"^17.2.2","simple-assert":"^2.0.0","validate-commit-msg":"^2.14.0"},"engines":{"node":">= 14.16"},"gitHead":"c9b7e6dc69b18a3db88327054ebbf417afed2a8a","bugs":{"url":"https://github.com/chaijs/pathval/issues"},"_id":"pathval@2.0.0","_nodeVersion":"18.14.2","_npmVersion":"9.6.4","dist":{"shasum":"7e2550b422601d4f6b8e26f1301bc8f15a741a25","size":5188,"noattachment":false,"key":"/pathval/-/pathval-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pathval/download/pathval-2.0.0.tgz"},"_npmUser":{"name":"chaijs","email":"chaijs@keithcirkel.co.uk"},"directories":{},"maintainers":[{"name":"chaijs","email":"chaijs@keithcirkel.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pathval_2.0.0_1689969412627_0.7433857302415965"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-07-21T19:56:52.805Z","publish_time":1689969412805,"_source_registry_name":"default","_cnpm_publish_time":1689969412805},"1.1.1":{"name":"pathval","description":"Object value retrieval given a string path","homepage":"https://github.com/chaijs/pathval","version":"1.1.1","keywords":["pathval","value retrieval","chai util"],"license":"MIT","author":{"name":"Veselin Todorov","email":"hi@vesln.com"},"main":"./index.js","repository":{"type":"git","url":"git+ssh://git@github.com/chaijs/pathval.git"},"scripts":{"build":"browserify --standalone pathval -o pathval.js","lint":"eslint --ignore-path .gitignore .","lint:fix":"npm run lint -- --fix","prepublish":"npm run build","semantic-release":"semantic-release pre && npm publish && semantic-release post","pretest":"npm run lint","test":"npm run test:node && npm run test:browser && npm run upload-coverage","test:browser":"karma start --singleRun=true","test:node":"nyc mocha","upload-coverage":"lcov-result-merger 'coverage/**/lcov.info' | coveralls; exit 0"},"config":{"ghooks":{"commit-msg":"validate-commit-msg"}},"eslintConfig":{"extends":["strict/es5"],"env":{"es6":true},"globals":{"HTMLElement":false},"rules":{"complexity":0,"max-statements":0}},"devDependencies":{"browserify":"^17.0.0","browserify-istanbul":"^3.0.1","coveralls":"^3.1.0","eslint":"^7.13.0","eslint-config-strict":"^14.0.1","eslint-plugin-filenames":"^1.3.2","ghooks":"^2.0.4","karma":"^5.2.3","karma-browserify":"^7.0.0","karma-coverage":"^2.0.3","karma-mocha":"^2.0.1","karma-phantomjs-launcher":"^1.0.4","karma-sauce-launcher":"^4.3.3","lcov-result-merger":"^3.1.0","mocha":"^8.2.1","nyc":"^15.1.0","phantomjs-prebuilt":"^2.1.16","semantic-release":"^17.2.2","simple-assert":"^1.0.0","travis-after-all":"^1.4.5","validate-commit-msg":"^2.14.0"},"engines":{"node":"*"},"gitHead":"db6c3e39c39859564704b7f37149082689f1b172","bugs":{"url":"https://github.com/chaijs/pathval/issues"},"_id":"pathval@1.1.1","_nodeVersion":"14.9.0","_npmVersion":"6.14.8","dist":{"shasum":"8534e77a77ce7ac5a2512ea21e0fdb8fcf6c3d8d","size":5554,"noattachment":false,"key":"/pathval/-/pathval-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/pathval/download/pathval-1.1.1.tgz"},"_npmUser":{"name":"chai","email":"chaijs@keithcirkel.co.uk"},"directories":{},"maintainers":[{"name":"chaijs","email":"chaijs@keithcirkel.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pathval_1.1.1_1611656316931_0.13667452195133456"},"_hasShrinkwrap":false,"publish_time":1611656317054,"_cnpm_publish_time":1611656317054},"1.1.0":{"name":"pathval","description":"Object value retrieval given a string path","homepage":"https://github.com/chaijs/pathval","keywords":["pathval","value retrieval","chai util"],"license":"MIT","author":{"name":"Veselin Todorov","email":"hi@vesln.com"},"files":["index.js","pathval.js"],"main":"./index.js","repository":{"type":"git","url":"git+ssh://git@github.com/chaijs/pathval.git"},"scripts":{"build":"browserify --bare $npm_package_main --standalone pathval -o pathval.js","lint":"eslint --ignore-path .gitignore .","prepublish":"npm run build","semantic-release":"semantic-release pre && npm publish && semantic-release post","pretest":"npm run lint","test":"npm run test:node && npm run test:browser && npm run upload-coverage","test:browser":"karma start --singleRun=true","test:node":"istanbul cover _mocha","upload-coverage":"lcov-result-merger 'coverage/**/lcov.info' | coveralls; exit 0"},"config":{"ghooks":{"commit-msg":"validate-commit-msg"}},"eslintConfig":{"extends":["strict/es5"],"env":{"es6":true},"globals":{"HTMLElement":false},"rules":{"complexity":0,"max-statements":0}},"devDependencies":{"browserify":"^13.0.0","browserify-istanbul":"^1.0.0","coveralls":"2.11.9","eslint":"^2.4.0","eslint-config-strict":"^8.5.0","eslint-plugin-filenames":"^0.2.0","ghooks":"^1.0.1","istanbul":"^0.4.2","karma":"^0.13.22","karma-browserify":"^5.0.2","karma-coverage":"^0.5.5","karma-mocha":"^0.2.2","karma-phantomjs-launcher":"^1.0.0","karma-sauce-launcher":"^0.3.1","lcov-result-merger":"^1.0.2","mocha":"^3.1.2","phantomjs-prebuilt":"^2.1.5","semantic-release":"^4.3.5","simple-assert":"^1.0.0","travis-after-all":"^1.4.4","validate-commit-msg":"^2.3.1"},"engines":{"node":"*"},"version":"1.1.0","gitHead":"fd11b26a39c2d948ef6785feac1edf8c01e4a055","bugs":{"url":"https://github.com/chaijs/pathval/issues"},"_id":"pathval@1.1.0","_shasum":"b942e6d4bde653005ef6b71361def8727d0645e0","_from":".","_npmVersion":"3.10.8","_nodeVersion":"0.10.47","_npmUser":{"name":"chaijs","email":"chaijs@keithcirkel.co.uk"},"dist":{"shasum":"b942e6d4bde653005ef6b71361def8727d0645e0","size":5718,"noattachment":false,"key":"/pathval/-/pathval-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pathval/download/pathval-1.1.0.tgz"},"maintainers":[{"name":"chaijs","email":"chaijs@keithcirkel.co.uk"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/pathval-1.1.0.tgz_1476222299732_0.22869419353082776"},"directories":{},"publish_time":1476222301397,"_cnpm_publish_time":1476222301397,"_hasShrinkwrap":false},"1.0.0":{"name":"pathval","description":"Object value retrieval given a string path","homepage":"https://github.com/chaijs/pathval","keywords":["pathval","value retrieval","chai util"],"license":"MIT","author":{"name":"Veselin Todorov","email":"hi@vesln.com"},"files":["index.js","pathval.js"],"main":"./index.js","repository":{"type":"git","url":"git+ssh://git@github.com/chaijs/pathval.git"},"scripts":{"build":"browserify --bare $npm_package_main --standalone pathval -o pathval.js","lint":"eslint --ignore-path .gitignore .","prepublish":"npm run build","semantic-release":"semantic-release pre && npm publish && semantic-release post","pretest":"npm run lint","test":"npm run test:node && npm run test:browser && npm run upload-coverage","test:browser":"karma start --singleRun=true","test:node":"istanbul cover _mocha","upload-coverage":"lcov-result-merger 'coverage/**/lcov.info' | coveralls; exit 0"},"config":{"ghooks":{"commit-msg":"validate-commit-msg"}},"eslintConfig":{"extends":["strict/es5"],"env":{"es6":true},"globals":{"HTMLElement":false},"rules":{"complexity":0,"max-statements":0}},"devDependencies":{"browserify":"^13.0.0","browserify-istanbul":"^1.0.0","coveralls":"2.11.9","eslint":"^2.4.0","eslint-config-strict":"^8.5.0","eslint-plugin-filenames":"^0.2.0","ghooks":"^1.0.1","istanbul":"^0.4.2","karma":"^0.13.22","karma-browserify":"^5.0.2","karma-coverage":"^0.5.5","karma-mocha":"^0.2.2","karma-phantomjs-launcher":"^1.0.0","karma-sauce-launcher":"^0.3.1","lcov-result-merger":"^1.0.2","mocha":"^2.4.5","phantomjs-prebuilt":"^2.1.5","semantic-release":"^4.3.5","simple-assert":"^1.0.0","travis-after-all":"^1.4.4","validate-commit-msg":"^2.3.1"},"engines":{"node":"*"},"version":"1.0.0","gitHead":"37f1dc9f0c41b815598e62c92bbe89b83fca1089","bugs":{"url":"https://github.com/chaijs/pathval/issues"},"_id":"pathval@1.0.0","_shasum":"dd843dd66e7666d3193376f4479e6ee6e1d29d28","_from":".","_npmVersion":"3.10.8","_nodeVersion":"0.10.47","_npmUser":{"name":"chaijs","email":"chaijs@keithcirkel.co.uk"},"dist":{"shasum":"dd843dd66e7666d3193376f4479e6ee6e1d29d28","size":5711,"noattachment":false,"key":"/pathval/-/pathval-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pathval/download/pathval-1.0.0.tgz"},"maintainers":[{"name":"chaijs","email":"chaijs@keithcirkel.co.uk"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/pathval-1.0.0.tgz_1475963991947_0.6970440507866442"},"directories":{},"publish_time":1475963992585,"_cnpm_publish_time":1475963992585,"_hasShrinkwrap":false},"0.2.1":{"name":"pathval","description":"Object value retrieval given a string path","homepage":"https://github.com/chaijs/pathval","keywords":["pathval","value retrieval","chai util"],"license":"MIT","author":{"name":"Veselin Todorov","email":"hi@vesln.com"},"files":["index.js","pathval.js"],"main":"./index.js","repository":{"type":"git","url":"git+ssh://git@github.com/chaijs/pathval.git"},"scripts":{"build":"browserify --bare $npm_package_main --standalone pathval -o pathval.js","lint":"eslint --ignore-path .gitignore .","prepublish":"npm run build","semantic-release":"semantic-release pre && npm publish && semantic-release post","pretest":"npm run lint","test":"npm run test:node && npm run test:browser && npm run upload-coverage","test:browser":"karma start --singleRun=true","test:node":"istanbul cover _mocha","upload-coverage":"lcov-result-merger 'coverage/**/lcov.info' | coveralls; exit 0"},"config":{"ghooks":{"commit-msg":"validate-commit-msg"}},"eslintConfig":{"extends":["strict/es5"],"env":{"es6":true},"globals":{"HTMLElement":false},"rules":{"complexity":0,"max-statements":0}},"devDependencies":{"browserify":"^13.0.0","browserify-istanbul":"^1.0.0","coveralls":"2.11.9","eslint":"^2.4.0","eslint-config-strict":"^8.5.0","eslint-plugin-filenames":"^0.2.0","ghooks":"^1.0.1","istanbul":"^0.4.2","karma":"^0.13.22","karma-browserify":"^5.0.2","karma-coverage":"^0.5.5","karma-mocha":"^0.2.2","karma-phantomjs-launcher":"^1.0.0","karma-sauce-launcher":"^0.3.1","lcov-result-merger":"^1.0.2","mocha":"^2.4.5","phantomjs-prebuilt":"^2.1.5","semantic-release":"^4.3.5","simple-assert":"^1.0.0","travis-after-all":"^1.4.4","validate-commit-msg":"^2.3.1"},"engines":{"node":"*"},"version":"0.2.1","gitHead":"6d2f6d4db2fc62f0c74d89d0575cfd433afdd2a7","bugs":{"url":"https://github.com/chaijs/pathval/issues"},"_id":"pathval@0.2.1","_shasum":"47ead80a77bbe6192b59326e1b71635e6962563c","_from":".","_npmVersion":"3.10.8","_nodeVersion":"0.10.47","_npmUser":{"name":"chaijs","email":"chaijs@keithcirkel.co.uk"},"dist":{"shasum":"47ead80a77bbe6192b59326e1b71635e6962563c","size":5713,"noattachment":false,"key":"/pathval/-/pathval-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/pathval/download/pathval-0.2.1.tgz"},"maintainers":[{"name":"chaijs","email":"chaijs@keithcirkel.co.uk"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/pathval-0.2.1.tgz_1475703461600_0.5263914761599153"},"directories":{},"publish_time":1475703463749,"_cnpm_publish_time":1475703463749,"_hasShrinkwrap":false},"0.2.0":{"name":"pathval","description":"Object value retrieval given a string path","homepage":"https://github.com/chaijs/pathval","keywords":["pathval","value retrieval","chai util"],"license":"MIT","author":{"name":"Veselin Todorov","email":"hi@vesln.com"},"files":["index.js","pathval.js"],"main":"./index.js","repository":{"type":"git","url":"git+ssh://git@github.com/chaijs/pathval.git"},"scripts":{"build":"browserify --bare $npm_package_main --standalone pathval -o pathval.js","lint":"eslint --ignore-path .gitignore .","prepublish":"npm run build","semantic-release":"semantic-release pre && npm publish && semantic-release post","pretest":"npm run lint","test":"npm run test:node && npm run test:browser && npm run upload-coverage","test:browser":"karma start --singleRun=true","test:node":"istanbul cover _mocha","upload-coverage":"lcov-result-merger 'coverage/**/lcov.info' | coveralls; exit 0"},"config":{"ghooks":{"commit-msg":"validate-commit-msg"}},"eslintConfig":{"extends":["strict/es5"],"env":{"es6":true},"globals":{"HTMLElement":false},"rules":{"complexity":0,"max-statements":0}},"dependencies":{"type-detect":"^2.0.1"},"devDependencies":{"browserify":"^13.0.0","browserify-istanbul":"^1.0.0","coveralls":"2.11.9","eslint":"^2.4.0","eslint-config-strict":"^8.5.0","eslint-plugin-filenames":"^0.2.0","ghooks":"^1.0.1","istanbul":"^0.4.2","karma":"^0.13.22","karma-browserify":"^5.0.2","karma-coverage":"^0.5.5","karma-mocha":"^0.2.2","karma-phantomjs-launcher":"^1.0.0","karma-sauce-launcher":"^0.3.1","lcov-result-merger":"^1.0.2","mocha":"^2.4.5","phantomjs-prebuilt":"^2.1.5","semantic-release":"^4.3.5","simple-assert":"^1.0.0","travis-after-all":"^1.4.4","validate-commit-msg":"^2.3.1"},"engines":{"node":"*"},"version":"0.2.0","gitHead":"979fa9d501484be5a48f9bcaaf00d726b8190a6a","bugs":{"url":"https://github.com/chaijs/pathval/issues"},"_id":"pathval@0.2.0","_shasum":"cf87ac1ced492cadcbcbb482d2e72012a5237ade","_from":".","_npmVersion":"3.10.8","_nodeVersion":"0.10.47","_npmUser":{"name":"chaijs","email":"chaijs@keithcirkel.co.uk"},"dist":{"shasum":"cf87ac1ced492cadcbcbb482d2e72012a5237ade","size":8604,"noattachment":false,"key":"/pathval/-/pathval-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pathval/download/pathval-0.2.0.tgz"},"maintainers":[{"name":"chaijs","email":"chaijs@keithcirkel.co.uk"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/pathval-0.2.0.tgz_1475626779711_0.6217861396726221"},"directories":{},"publish_time":1475626781579,"_cnpm_publish_time":1475626781579,"_hasShrinkwrap":false},"0.1.1":{"name":"pathval","version":"0.1.1","description":"Object value retrieval given a string path","main":"./index.js","homepage":"https://github.com/chaijs/pathval","scripts":{"test":"hydro","coverage":"istanbul cover _hydro","coveralls":"istanbul cover _hydro --report lcovonly && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","test-readme":"jsmd README.md"},"repository":{"type":"git","url":"https://github.com/chaijs/pathval"},"devDependencies":{"coveralls":"~2.3.0","istanbul":"~0.1.44","jsmd":"~0.2.0","simple-assert":"~1.0.0","hydro":"~0.8.7","hydro-file-suite":"0.0.1","hydro-doc":"0.0.2","hydro-bdd":"0.0.3"},"author":{"name":"Veselin Todorov","email":"hi@vesln.com"},"license":"MIT","readmeFilename":"README.md","bugs":{"url":"https://github.com/chaijs/pathval/issues"},"_id":"pathval@0.1.1","dist":{"shasum":"08f911cdca9cce5942880da7817bc0b723b66d82","size":3512,"noattachment":false,"key":"/pathval/-/pathval-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/pathval/download/pathval-0.1.1.tgz"},"_from":".","_npmVersion":"1.3.15","_npmUser":{"name":"jakeluer","email":"jake@alogicalparadox.com"},"maintainers":[{"name":"chaijs","email":"chaijs@keithcirkel.co.uk"}],"directories":{},"publish_time":1388445267044,"_cnpm_publish_time":1388445267044,"_hasShrinkwrap":false},"0.1.0":{"name":"pathval","version":"0.1.0","description":"Object value retrieval given a string path","main":"./lib/pathval.js","homepage":"https://github.com/chaijs/pathval","scripts":{"test":"hydro","coverage":"istanbul cover _hydro","coveralls":"istanbul cover _hydro --report lcovonly && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","test-readme":"jsmd README.md"},"repository":{"type":"git","url":"https://github.com/chaijs/pathval"},"devDependencies":{"coveralls":"~2.3.0","istanbul":"~0.1.44","jsmd":"~0.2.0","simple-assert":"~1.0.0","hydro":"~0.8.7","hydro-file-suite":"0.0.1","hydro-doc":"0.0.2","hydro-bdd":"0.0.3"},"author":{"name":"Veselin Todorov","email":"hi@vesln.com"},"license":"MIT","readmeFilename":"README.md","bugs":{"url":"https://github.com/chaijs/pathval/issues"},"_id":"pathval@0.1.0","dist":{"shasum":"a4b33d8c231784bb3c88bbf1802f8b59b883d5cd","size":3512,"noattachment":false,"key":"/pathval/-/pathval-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pathval/download/pathval-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"vesln","email":"hi@vesln.com"},"maintainers":[{"name":"chaijs","email":"chaijs@keithcirkel.co.uk"}],"directories":{},"publish_time":1388227259775,"_cnpm_publish_time":1388227259775,"_hasShrinkwrap":false},"0.0.1":{"name":"pathval","version":"0.0.1","description":"Object value retrieval given a string path","main":"./lib/pathval.js","homepage":"https://github.com/chaijs/pathval","scripts":{"test":"mocha test/*.test.js","coverage":"istanbul cover ./node_modules/.bin/_mocha test/*.test.js","coveralls":"istanbul cover ./node_modules/.bin/_mocha test/*.test.js --report lcovonly && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","test-readme":"jsmd README.md"},"repository":{"type":"git","url":"https://github.com/chaijs/pathval"},"devDependencies":{"mocha":"~1.13.0","chai":"~1.8.1","coveralls":"~2.3.0","istanbul":"~0.1.44","jsmd":"~0.2.0"},"author":{"name":"Veselin Todorov","email":"hi@vesln.com"},"license":"MIT","readmeFilename":"README.md","bugs":{"url":"https://github.com/chaijs/pathval/issues"},"_id":"pathval@0.0.1","dist":{"shasum":"130054c3874153be50fc3fdb4c5b9a1c68036d08","size":2743,"noattachment":false,"key":"/pathval/-/pathval-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/pathval/download/pathval-0.0.1.tgz"},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"vesln","email":"hi@vesln.com"},"maintainers":[{"name":"chaijs","email":"chaijs@keithcirkel.co.uk"}],"directories":{},"publish_time":1385316608847,"_cnpm_publish_time":1385316608847,"_hasShrinkwrap":false}},"readme":"<h1 align=center>\n  <a href=\"http://chaijs.com\" title=\"Chai Documentation\">\n    <img alt=\"ChaiJS\" src=\"http://chaijs.com/img/chai-logo.png\">\n  </a>\n  <br>\n  pathval\n</h1>\n\n<p align=center>\n   Tool for Object value retrieval given a string path for <a href=\"http://nodejs.org\">node</a> and the browser.\n</p>\n\n<p align=center>\n  <a href=\"./LICENSE\">\n    <img\n      alt=\"license:mit\"\n      src=\"https://img.shields.io/badge/license-mit-green.svg?style=flat-square\"\n    />\n  </a>\n  <a href=\"https://github.com/chaijs/pathval/releases\">\n    <img\n      alt=\"tag:?\"\n      src=\"https://img.shields.io/github/tag/chaijs/pathval.svg?style=flat-square\"\n    />\n  </a>\n  <a href=\"https://travis-ci.org/chaijs/pathval\">\n    <img\n      alt=\"build:?\"\n      src=\"https://img.shields.io/travis/chaijs/pathval/master.svg?style=flat-square\"\n    />\n  </a>\n  <a href=\"https://coveralls.io/r/chaijs/pathval\">\n    <img\n      alt=\"coverage:?\"\n      src=\"https://img.shields.io/coveralls/chaijs/pathval/master.svg?style=flat-square\"\n    />\n  </a>\n  <a href=\"https://www.npmjs.com/packages/pathval\">\n    <img\n      alt=\"npm:?\"\n      src=\"https://img.shields.io/npm/v/pathval.svg?style=flat-square\"\n    />\n  </a>\n  <a href=\"https://www.npmjs.com/packages/pathval\">\n    <img\n      alt=\"dependencies:?\"\n      src=\"https://img.shields.io/npm/dm/pathval.svg?style=flat-square\"\n    />\n  </a>\n  <a href=\"\">\n    <img\n      alt=\"devDependencies:?\"\n      src=\"https://img.shields.io/david/chaijs/pathval.svg?style=flat-square\"\n    />\n  </a>\n  <br/>\n  <a href=\"https://saucelabs.com/u/chaijs-pathval\">\n    <img\n      alt=\"Selenium Test Status\"\n      src=\"https://saucelabs.com/browser-matrix/chaijs-pathval.svg\"\n    />\n  </a>\n  <br>\n  <a href=\"https://chai-slack.herokuapp.com/\">\n    <img\n      alt=\"Join the Slack chat\"\n      src=\"https://img.shields.io/badge/slack-join%20chat-E2206F.svg?style=flat-square\"\n    />\n  </a>\n  <a href=\"https://gitter.im/chaijs/chai\">\n    <img\n      alt=\"Join the Gitter chat\"\n      src=\"https://img.shields.io/badge/gitter-join%20chat-D0104D.svg?style=flat-square\"\n    />\n  </a>\n</p>\n\n## What is pathval?\n\nPathval is a module which you can use to retrieve or set an Object's property for a given `String` path.\n\n## Installation\n\n### Node.js\n\n`pathval` is available on [npm](http://npmjs.org). To install it, type:\n\n    $ npm install pathval\n\n### Browsers\n\nYou can also use it within the browser; install via npm and use the `pathval.js` file found within the download. For example:\n\n```html\n<script src=\"./node_modules/pathval/pathval.js\"></script>\n```\n\n## Usage\n\nThe primary export of `pathval` is an object which has the following methods:\n\n* `hasProperty(object, name)` - Checks whether an `object` has `name`d property or numeric array index.\n* `getPathInfo(object, path)` - Returns an object with info indicating the value of the `parent` of that path, the `name ` of the property we're retrieving and its `value`.\n* `getPathValue(object, path)` - Retrieves the value of a property at a given `path` inside an `object`'.\n* `setPathValue(object, path, value)` - Sets the `value` of a property at a given `path` inside an `object` and returns the object in which the property has been set.\n\n```js\nvar pathval = require('pathval');\n```\n\n#### .hasProperty(object, name)\n\n```js\nvar pathval = require('pathval');\n\nvar obj = { prop: 'a value' };\npathval.hasProperty(obj, 'prop'); // true\n```\n\n#### .getPathInfo(object, path)\n\n```js\nvar pathval = require('pathval');\n\nvar obj = { earth: { country: 'Brazil' } };\npathval.getPathInfo(obj, 'earth.country'); // { parent: { country: 'Brazil'  }, name: 'country', value: 'Brazil', exists: true }\n```\n\n#### .getPathValue(object, path)\n\n```js\nvar pathval = require('pathval');\n\nvar obj = { earth: { country: 'Brazil' } };\npathval.getPathValue(obj, 'earth.country'); // 'Brazil'\n```\n\n#### .setPathValue(object, path, value)\n\n```js\nvar pathval = require('pathval');\n\nvar obj = { earth: { country: 'Brazil' } };\npathval.setPathValue(obj, 'earth.country', 'USA');\n\nobj.earth.country; // 'USA'\n```\n","_attachments":{},"homepage":"https://github.com/chaijs/pathval","bugs":{"url":"https://github.com/chaijs/pathval/issues"},"license":"MIT"}