kontroll
Version:
kontroll ("control") is a tiny, dead-simple package for function behavior controls like debounce, countdown, throttle (limit).
88 lines (87 loc) • 2.34 kB
JSON
{
"name": "kontroll",
"type": "module",
"version": "1.1.1",
"packageManager": "pnpm@10.8.0",
"description": "kontroll (\"control\") is a tiny, dead-simple package for function behavior controls like debounce, countdown, throttle (limit).",
"author": "NamesMT <dangquoctrung123@gmail.com>",
"license": "MIT",
"funding": "https://github.com/sponsors/namesmt",
"homepage": "https://github.com/namesmt/kontroll#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/namesmt/kontroll.git"
},
"bugs": "https://github.com/namesmt/kontroll/issues",
"keywords": [
"function",
"control",
"invoke",
"debounce",
"throttle",
"countdown",
"limit",
"interval",
"rate"
],
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.mts",
"import": "./dist/index.mjs"
}
},
"source": "./src/index.ts",
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.mts",
"files": [
"dist"
],
"engines": {
"node": ">=18.0.0"
},
"scripts": {
"start": "NODE_ENV=dev tsx src/index.ts",
"watch": "NODE_ENV=dev tsx watch src/index.ts",
"stub": "unbuild --stub",
"dev": "pnpm run watch",
"play": "pnpm run stub && pnpm run --filter playground dev",
"play:useBuild": "pnpm run build && pnpm run --filter playground dev",
"lint": "eslint .",
"test": "vitest",
"test:types": "tsc --noEmit --skipLibCheck",
"check": "pnpm lint && pnpm test:types && vitest run --coverage",
"build": "unbuild",
"release": "pnpm dlx changelogen@latest --release --push --publish",
"prepare": "simple-git-hooks",
"prepublishOnly": "pnpm run build"
},
"devDependencies": {
"@antfu/eslint-config": "^4.12.0",
"@types/node": "^22.14.0",
"@vitest/coverage-v8": "^3.1.1",
"eslint": "^9.24.0",
"lint-staged": "^15.5.0",
"simple-git-hooks": "^2.12.1",
"tsx": "^4.19.3",
"typescript": "^5.8.3",
"unbuild": "^3.5.0",
"vitest": "^3.1.1"
},
"pnpm": {
"overrides": {
"is-core-module": "npm:@nolyfill/is-core-module@^1"
},
"onlyBuiltDependencies": [
"esbuild",
"simple-git-hooks"
]
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged"
},
"lint-staged": {
"*": "eslint"
}
}