UNPKG

safe-access-ts

Version:

Unleash the power of TypeScript to safely access, set, or delete deeply nested object properties. Bid adieu to 'Cannot read property of undefined' errors and embrace a world of defensive and robust code.

52 lines (51 loc) 1.49 kB
{ "name": "safe-access-ts", "version": "1.0.2", "description": "Unleash the power of TypeScript to safely access, set, or delete deeply nested object properties. Bid adieu to 'Cannot read property of undefined' errors and embrace a world of defensive and robust code.", "main": "lib/index.js", "types": "lib/index.d.ts", "jest": { "testPathIgnorePatterns": [ "lib/**/*.d.ts" ], "collectCoverageFrom": [ "src/**/*.ts" ] }, "scripts": { "test": "jest --config jest.config.json", "format": "prettier --write \"src/**/*.ts\"", "lint": "tslint -p tsconfig.json", "prepare": "npm run build", "clean": "del ./lib/*", "build": "tsc", "pub": "npm version patch && npm run build && git add . && git commit -m \"auto commit for npm updates\" && git push && npm publish" }, "repository": { "type": "git", "url": "git+https://github.com/esmat-nawahda/safe-access-ts.git" }, "keywords": [ "javascript", "safe-access", "object" ], "bugs": { "url": "https://github.com/esmat-nawahda/safe-access-ts/issues" }, "homepage": "https://github.com/esmat-nawahda/safe-access-ts#readme", "author": "Esmat Nawahda", "license": "ISC", "devDependencies": { "@types/jest": "^29.5.3", "jest": "^29.6.1", "prettier": "^3.0.0", "ts-jest": "^29.1.1", "tslint": "^6.1.3", "tslint-config-prettier": "^1.18.0", "typescript": "^5.1.6" }, "directories": { "lib": "lib" } }