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).

95 lines (94 loc) 2.22 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.0.1", "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", "eslint": "npx eslint --ext .ts .", "coverage": "nyc --reporter=text --reporter=html", "test": "ts-mocha -r esbuild-register 'test/**/*.ts'", "tsup": "npx tsup" }, "files": [ "dist/index.js", "dist/index.mjs", "index.d.ts" ], "main": "dist/index.js", "module": "dist/index.mjs", "types": "index.d.ts", "exports": { ".": { "types": "./index.d.ts", "import": "./dist/index.mjs", "require": "./dist/index.js" } }, "devDependencies": { "@types/node": "^22.10.7", "@typescript-eslint/eslint-plugin": "^6.2.0", "@typescript-eslint/parser": "^6.2.0", "arr-reduce": "^1.0.1", "dot-prop": "^9.0.0", "dotty": "^0.1.2", "esbuild-register": "^3.5.0", "eslint": "^8.57.0", "getobject": "^1.1.1", "gulp-format-md": "^2.0.0", "micromatch": "^4.0.5", "minimist": "^1.2.8", "nyc": "^17.1.0", "object-path": "^0.11.8", "prettier": "^3.4.2", "ts-mocha": "^10.0.0", "ts-node": "^10.9.2", "tsconfig-paths": "^4.2.0", "tsup": "^8.3.5", "typescript": "^5.4.5" }, "keywords": [ "get", "key", "nested", "object", "path", "paths", "prop", "properties", "property", "props", "segment", "value", "values" ], "verb": { "run": true, "toc": "collapsible", "layout": "default", "tasks": [ "readme" ], "plugins": [ "gulp-format-md" ], "related": { "list": [ "has-any", "has-any-deep", "has-value", "set-value", "unset-value" ] }, "lint": { "reflinks": true } } }