UNPKG

ut2

Version:

一个现代 JavaScript 实用工具库。[点击查看在线文档]。

100 lines (99 loc) 2.75 kB
{ "name": "ut2", "version": "1.21.2", "author": "caijf", "license": "MIT", "main": "lib/index.js", "module": "es/index.js", "unpkg": "dist/ut2.min.js", "sideEffects": false, "types": "types/index.d.ts", "scripts": { "test": "jest", "test:coverage": "jest --coverage", "test:coverage:local": "cross-env COVERAGE_LOCAL=1 jest --coverage --detectOpenHandles && open ./coverage/lcov-report/index.html", "benchmark": "node benchmark/node.js", "build": "rm -rf es lib dist && rollup -c && npm run build:types", "build:types": "rm -rf types && tsc -p tsconfig.build.json -d --outDir types --emitDeclarationOnly", "build:doc": "npm run doc", "doc": "rm -rf docs && rm -rf docs-src && tsc -p tsconfig.build.json -t esnext --outDir docs-src && jsdoc -c conf.json && rm -rf docs-src", "doc:open": "open ./docs/index.html", "lint": "eslint .", "lint:fix": "npm run lint:js -- --fix", "prettier": "prettier -w **/*", "commit": "cz", "prepublishOnly": "npm test && npm run build", "tsc": "tsc --noEmit", "prepare": "husky" }, "repository": { "type": "git", "url": "git+https://github.com/caijf/ut2.git" }, "bugs": { "url": "https://github.com/caijf/ut2/issues" }, "files": [ "dist", "lib", "es", "types" ], "keywords": [ "util", "modules", "es5", "es6", "es2015" ], "lint-staged": { "**/*.{js,jsx,ts,tsx}": "eslint", "**/*.{css,scss,less,js,jsx,ts,tsx,json,md}": "prettier -w" }, "config": { "commitizen": { "path": "@commitlint/cz-commitlint" } }, "publishConfig": { "registry": "https://registry.npmjs.org/" }, "devDependencies": { "@commitlint/cli": "^19.8.1", "@commitlint/config-conventional": "^19.8.1", "@commitlint/cz-commitlint": "^19.8.1", "@eslint/js": "^9.39.2", "@rollup/plugin-commonjs": "^28.0.9", "@rollup/plugin-node-resolve": "^16.0.3", "@rollup/plugin-replace": "^6.0.3", "@rollup/plugin-terser": "^0.4.4", "@rollup/plugin-typescript": "^12.3.0", "@types/jest": "^30.0.0", "@types/node": "^20.19.27", "benchmark": "^2.1.4", "commitizen": "^4.3.1", "cross-env": "^7.0.3", "dayjs": "^1.11.19", "docdash": "^2.0.2", "eslint": "^9.39.2", "globals": "^16.5.0", "husky": "^9.1.7", "jest": "^30.2.0", "jest-environment-jsdom": "^30.2.0", "jsdoc": "^4.0.5", "lint-staged": "^15.5.2", "lodash": "^4.17.21", "prettier": "^3.7.4", "rollup": "^4.54.0", "ts-jest": "^29.4.6", "typescript": "^5.9.3", "typescript-eslint": "^8.51.0", "underscore": "^1.13.7" }, "engines": { "node": ">=10" }, "dependencies": { "tslib": "^2.8.1" } }