UNPKG

better-timer

Version:

A promise-based timer that can be paused

53 lines (52 loc) 1.76 kB
{ "name": "better-timer", "description": "A promise-based timer that can be paused", "version": "2.0.4", "author": "Felix Wotschofsky <hello@felisk.io>", "license": "MIT", "main": "dist/main/index.js", "types": "dist/main/index.d.ts", "module": "dist/module/index.js", "unpkg": "dist/better-timer.min.js", "files": [ "dist/", "!**/*.tsbuildinfo", "LICENSE", "README.md" ], "repository": { "type": "git", "url": "git+https://github.com/wotschofsky/better-timer.git" }, "homepage": "https://github.com/wotschofsky/better-timer#readme", "bugs": { "url": "https://github.com/wotschofsky/better-timer/issues" }, "keywords": [ "pauseable", "timer", "node", "browser" ], "scripts": { "prebuild": "rm -rf dist/", "build": "run-p build:*", "build:main": "tsc -p tsconfig.json", "build:module": "tsc -p tsconfig.module.json", "build:bundle": "esbuild src/bundle.ts --bundle --sourcemap --platform=browser --outfile=dist/better-timer.js", "build:bundle-min": "esbuild src/index.ts --bundle --sourcemap --platform=browser --minify --outfile=dist/better-timer.min.js", "predev": "rm -rf dist/", "dev": "run-p dev:*", "dev:main": "tsc -p tsconfig.json -w", "dev:module": "tsc -p tsconfig.module.json -w", "dev:bundle": "esbuild src/bundle.ts --bundle --sourcemap=inline --platform=browser --outfile=dist/better-timer.js --watch", "dev:bundle-min": "esbuild src/index.ts --bundle --sourcemap=inline --platform=browser --minify --outfile=dist/better-timer.min.js --watch", "release": "release-it" }, "devDependencies": { "esbuild": "^0.18.15", "npm-run-all": "^4.1.5", "release-it": "^16.1.3", "typescript": "^5.1.6" } }