define-enum
Version:
A utility function to define enum-like objects with TypeScript support.一个帮助定义枚举的工具函数
61 lines (60 loc) • 1.35 kB
JSON
{
"name": "define-enum",
"description": "A utility function to define enum-like objects with TypeScript support.一个帮助定义枚举的工具函数",
"version": "1.0.1",
"type": "module",
"author": {
"name": "BlInYo"
},
"repository": {
"type": "git",
"url": "https://github.com/BlInYo/define-enum"
},
"bugs": {
"url": "https://github.com/BlInYo/define-enum/issues"
},
"homepage": "https://github.com/BlInYo/define-enum#readme",
"keywords": [
"typescript",
"enum",
"defineEnum",
"枚举",
"工具库"
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"main": "./dist/index.cjs",
"types": "./dist/index.d.ts",
"files": [
"dist",
"README.md",
"LICENSE"
],
"scripts": {
"build": "rslib build",
"dev": "rslib build --watch",
"format": "prettier --write .",
"lint": "eslint .",
"test": "vitest run"
},
"devDependencies": {
"@eslint/js": "^9.29.0",
"@rslib/core": "^0.10.4",
"@types/node": "^22.15.33",
"eslint": "^9.29.0",
"globals": "^16.2.0",
"prettier": "^3.5.3",
"typescript": "^5.8.3",
"typescript-eslint": "^8.34.1",
"vitest": "^3.2.4"
},
"engines": {
"typescript": ">=5.0.0"
},
"license": "MIT"
}