get-or-throw
Version:
A convenience function for safely getting values from dynamic objects and arrays
50 lines • 1.26 kB
JSON
{
"name": "get-or-throw",
"version": "2.1.0",
"description": "A convenience function for safely getting values from dynamic objects and arrays",
"type": "module",
"main": "dist/index.cjs",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/0x80/get-or-throw.git"
},
"keywords": [
"typescript",
"indexed",
"unchecked",
"noUncheckedIndexedAccess"
],
"author": "Thijs Koerselman",
"license": "MIT",
"bugs": {
"url": "https://github.com/0x80/get-or-throw/issues"
},
"homepage": "https://github.com/0x80/get-or-throw#readme",
"devDependencies": {
"@codecompose/typescript-config": "^1.1.2",
"@eslint/js": "^9.22.0",
"del-cli": "^5.1.0",
"eslint": "^9.22.0",
"prettier": "^3.3.3",
"prettier-plugin-jsdoc": "^1.3.0",
"tsup": "^8.3.0",
"typescript": "^5.6.2",
"typescript-eslint": "^8.26.0",
"vitest": "^3.0.8"
},
"scripts": {
"build": "tsup",
"clean": "del dist tsconfig.tsbuildinfo",
"lint": "eslint .",
"type-check": "tsc --noEmit",
"test": "vitest",
"format": "prettier --write ."
}
}