UNPKG

@matrixai/timer

Version:
68 lines (67 loc) 2.01 kB
{ "name": "@matrixai/timer", "version": "2.1.1", "author": "Roger Qiu", "description": "Stopwatch timer object", "keywords": [ "timer", "stopwatch", "setTimeout" ], "license": "Apache-2.0", "repository": { "type": "git", "url": "https://github.com/MatrixAI/js-timer.git" }, "type": "module", "exports": { "./package.json": "./package.json", ".": { "types": "./dist/index.d.ts", "import": "./dist/index.js" }, "./*.js": { "types": "./dist/*.d.ts", "import": "./dist/*.js" }, "./*": "./dist/*" }, "imports": { "#*": "./dist/*" }, "scripts": { "prepare": "tsc -p ./tsconfig.build.json", "build": "shx rm -rf ./dist && tsc -p ./tsconfig.build.json", "postversion": "npm install --package-lock-only --ignore-scripts --silent", "tsx": "tsx", "test": "node ./scripts/test.mjs", "lint": "eslint '{src,tests,scripts,benches}/**/*.{js,mjs,ts,mts,jsx,tsx}'", "lintfix": "eslint '{src,tests,scripts,benches}/**/*.{js,mjs,ts,mts,jsx,tsx}' --fix", "lint-shell": "find ./src ./tests ./scripts -type f -regextype posix-extended -regex '.*\\.(sh)' -exec shellcheck {} +", "docs": "shx rm -rf ./docs && typedoc --gitRevision master --tsconfig ./tsconfig.build.json --out ./docs src" }, "dependencies": { "@matrixai/async-cancellable": "^2.0.0", "@matrixai/errors": "^2.0.1" }, "devDependencies": { "@swc/core": "^1.3.76", "@swc/jest": "^0.2.29", "@types/jest": "^29.5.2", "@types/node": "^18.15.0", "@typescript-eslint/eslint-plugin": "^5.61.0", "@typescript-eslint/parser": "^5.61.0", "eslint": "^8.44.0", "eslint-config-prettier": "^8.8.0", "eslint-plugin-import": "^2.27.5", "eslint-plugin-prettier": "^5.0.0-alpha.2", "jest": "^29.6.2", "jest-extended": "^4.0.0", "jest-junit": "^16.0.0", "prettier": "^3.0.0", "shx": "^0.3.4", "tsx": "^3.12.7", "typedoc": "^0.24.8", "typescript": "^5.1.6" } }