UNPKG

get-value

Version:

Use property paths like 'a.b.c' to get a nested value from an object. Even works when keys have dots in them (no other dot-prop library we tested does this, or does it correctly).

99 lines (98 loc) 2.33 kB
{ "name": "get-value", "description": "Use property paths like 'a.b.c' to get a nested value from an object. Even works when keys have dots in them (no other dot-prop library we tested does this, or does it correctly).", "version": "4.1.0", "homepage": "https://github.com/jonschlinkert/get-value", "author": "Jon Schlinkert (https://github.com/jonschlinkert)", "repository": "jonschlinkert/get-value", "bugs": { "url": "https://github.com/jonschlinkert/get-value/issues" }, "license": "MIT", "scripts": { "bench": "node benchmark", "clean": "rm -rf dist", "cover": "nyc --all --reporter=text --reporter=html --include=src npm run test", "eslint": "npx eslint --ext .ts .", "test": "mocha --import=tsx \"test/**/*.test.ts\" --exit", "tsup": "npm run clean && npx tsup" }, "files": [ "dist" ], "main": "dist/index.js", "module": "dist/index.mjs", "types": "index.d.ts", "exports": { "./package": "./package.json", ".": { "types": "./index.d.ts", "import": "./dist/index.mjs", "require": "./dist/index.js" } }, "devDependencies": { "@eslint/js": "^10.0.1", "@types/node": "^25.9.3", "arr-reduce": "^1.0.1", "dot-prop": "^9.0.0", "dotty": "^0.1.2", "eslint": "^10.5.0", "eslint-plugin-import": "^2.32.0", "getobject": "^1.1.1", "globals": "^17.6.0", "gulp-format-md": "^2.0.0", "micromatch": "^4.0.8", "minimist": "^1.2.8", "mocha": "^11.7.6", "nyc": "^18.0.0", "object-path": "^0.11.8", "prettier": "^3.8.4", "tsconfig-paths": "^4.2.0", "tsup": "^8.5.1", "tsx": "^4.22.4", "typescript": "^6.0.3", "typescript-eslint": "^8.61.0" }, "keywords": [ "get", "key", "nested", "object", "path", "paths", "prop", "properties", "property", "props", "segment", "value", "values" ], "verb": { "run": true, "toc": "collapsible", "layout": "default", "data": { "workflow": "test.yml" }, "tasks": [ "readme" ], "plugins": [ "gulp-format-md" ], "related": { "list": [ "has-any", "has-any-deep", "has-value", "set-value", "unset-value" ] }, "lint": { "reflinks": true } } }