ts-switch-case
Version:
A TypeScript-first switch-case utility with object-based and chainable syntax
54 lines (53 loc) • 1.24 kB
JSON
{
"name": "ts-switch-case",
"version": "1.0.5",
"type": "module",
"description": "A TypeScript-first switch-case utility with object-based and chainable syntax",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}
},
"files": [
"dist",
"ReadME.md",
"LICENSE",
"package.json"
],
"scripts": {
"build": "tsup",
"test": "vitest run",
"coverage": "vitest run --coverage",
"lint": "tsc --noEmit && eslint src",
"prepublishOnly": "npm run build && npm test"
},
"keywords": [
"typescript",
"switch-case",
"pattern-matching",
"functional",
"nextjs",
"deno"
],
"author": "Jai Sachdeva <sachdeva.jai@outlook.com>",
"license": "MIT",
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^8.31.1",
"@typescript-eslint/parser": "^8.31.1",
"@vitest/coverage-v8": "^3.1.2",
"eslint": "^9.25.1",
"tsup": "^8.4.0",
"typescript": "^5.8.3",
"vitest": "^3.1.2"
}
}