UNPKG

singleton-proxy

Version:

A lightweight TypeScript singleton implementation using Proxy pattern

66 lines (65 loc) 1.7 kB
{ "name": "singleton-proxy", "version": "1.0.1", "description": "A lightweight TypeScript singleton implementation using Proxy pattern", "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/types/index.d.ts", "files": [ "dist" ], "exports": { ".": { "require": "./dist/cjs/index.js", "import": "./dist/esm/index.js", "types": "./dist/types/index.d.ts" } }, "scripts": { "build": "npm run build:cjs && npm run build:esm", "build:cjs": "tsc -p tsconfig.cjs.json", "build:esm": "tsc -p tsconfig.esm.json", "test": "jest", "test:watch": "jest --watch", "test:coverage": "jest --coverage", "prepare": "npm run build", "lint": "eslint src test --ext .ts", "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", "prepublishOnly": "npm test && npm run lint" }, "keywords": [ "typescript", "singleton", "proxy", "design-pattern", "singleton-pattern", "proxy-pattern" ], "author": "", "license": "MIT", "devDependencies": { "@types/jest": "^29.0.0", "@types/node": "^20.0.0", "@typescript-eslint/eslint-plugin": "^5.0.0", "@typescript-eslint/parser": "^5.0.0", "eslint": "^8.0.0", "jest": "^29.0.0", "prettier": "^2.8.0", "ts-jest": "^29.0.0", "typescript": "^5.0.0" }, "repository": { "type": "git", "url": "git+https://github.com/nkszwhb/singleton-proxy.git" }, "bugs": { "url": "https://github.com/nkszwhb/singleton-proxy/issues" }, "homepage": "https://github.com/nkszwhb/singleton-proxy#readme", "publishConfig": { "access": "public" }, "engines": { "node": ">=6.0.0" } }