UNPKG

@ncoderz/superenum

Version:

Simple, typesafe enums in TypeScript, fully compatible with standard JavaScript

113 lines (112 loc) 3.03 kB
{ "name": "@ncoderz/superenum", "version": "1.0.0", "description": "Simple, typesafe enums in TypeScript, fully compatible with standard JavaScript", "author": "six5536", "license": "BSD-2-Clause", "type": "module", "main": "./dist/index.cjs", "module": "./dist/index.js", "types": "./dist/index.d.ts", "browser": "./dist/browser/superenum.global.js", "jsdelivr": "./dist/browser/superenum.global.js", "unpkg": "./dist/browser/superenum.global.js", "exports": { "./browser": { "browser": "./dist/browser/superenum.global.js", "import": "./dist/browser/superenum.global.js", "require": "./dist/browser/superenum.global.js" }, "./esm": { "import": "./dist/index.js", "require": "./dist/index.js" }, "./cjs": { "import": "./dist/index.cjs", "require": "./dist/index.cjs" }, ".": { "import": "./dist/index.js", "require": "./dist/index.cjs", "default": "./dist/index.js" } }, "files": [ "dist", "README.md", "LICENSE" ], "scripts": { "dev": "node ./bin/dev.ts", "build": "npm run lint && npm run typecheck && tsup", "build:watch": "tsup --watch", "test": "vitest", "test-ci": "vitest run", "test-src": "vitest ./test/superenum.src.test.ts", "typecheck": "tsc --noEmit", "lint": "eslint --max-warnings 0 -- './**/*.@(tsx|ts|jsx|js|mjs|cjs)'", "lint-fix": "eslint --fix --max-warnings 0 -- './**/*.@(tsx|ts|jsx|js|mjs|cjs)'", "format": "prettier --write 'src/**/*.{ts,tsx}' '*.{json,md}'", "format-check": "prettier --check 'src/**/*.{ts,tsx}' '*.{json,md}'", "docs": "typedoc", "prepublishOnly": "npm run clean && npm run build && npm run test-ci && npm run docs", "clean": "node scripts/clean.ts" }, "devEngines": { "runtime": { "name": "node", "version": "^24.0.0", "onFail": "error" }, "packageManager": { "name": "npm", "version": "^11.0.0", "onFail": "error" } }, "engines": { "node": ">=16", "npm": ">=8" }, "keywords": [ "enum", "enumeration", "typesafe", "typescript", "javascript", "type", "key", "value", "intellisense", "code completion", "autocomplete", "ts", "js" ], "repository": { "type": "git", "url": "git+https://github.com/ncoderz/superenum.git" }, "contributors": [ "Richard Sewell (https://github.com/six5536)" ], "devDependencies": { "@types/fs-extra": "^11.0.4", "@types/node": "^24.1.0", "eslint": "^9.11.1", "eslint-config-prettier": "^10.1.8", "eslint-plugin-json": "^4.0.1", "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-simple-import-sort": "^12.1.1", "fs-extra": "^11.3.0", "prettier": "^3.3.3", "terser": "^5.43.1", "tsup": "^8.5.0", "typedoc": "^0.28.0", "typedoc-plugin-markdown": "^4.2.8", "typescript": "^5.6.2", "typescript-eslint": "^8.35.0", "vitest": "^3.2.4" }, "dependencies": {} }