UNPKG

match-iz

Version:

A tiny pattern-matching library in the style of the TC39 proposal

86 lines 2.42 kB
{ "name": "match-iz", "browserGlobalName": "matchiz", "version": "5.0.7", "description": "A tiny pattern-matching library in the style of the TC39 proposal", "author": "Conan Theobald", "license": "MIT", "keywords": [ "pattern-matching", "switch-case", "declarative-conditionals", "match-when", "otherwise" ], "types": "./index.d.ts", "main": "./dist/index.js", "module": "dist/index.mjs", "exports": { ".": { "import": "./dist/index.mjs", "require": "./dist/index.js", "default": "./dist/index.js", "types": "./index.d.ts" }, "./dates": { "import": "./dates/index.mjs", "require": "./dates/index.js", "default": "./dates/index.js", "types": "./dates/index.d.ts" }, "./dates/utc": { "import": "./dates/utc/index.mjs", "require": "./dates/utc/index.js", "default": "./dates/utc/index.js", "types": "./dates/utc/index.d.ts" }, "./package.json": "./package.json" }, "files": [ "dist", "dates", "CHANGELOG.md", "README.md", "LICENSE", "common.d.ts", "index.d.ts" ], "engines": { "node": ">=10" }, "homepage": "https://github.com/shuckster/match-iz", "repository": { "type": "git", "url": "https://github.com/shuckster/match-iz" }, "bugs": { "url": "https://github.com/shuckster/match-iz/issues", "email": "bugs+match-iz@conans.co.uk" }, "devDependencies": { "@typescript-eslint/eslint-plugin": "^8.20.0", "@typescript-eslint/parser": "^8.20.0", "compose-paths": "^1.2.3", "dedent": "^0.7.0", "esbuild": "^0.18.20", "eslint": "^9.18.0", "globals": "^15.14.0", "mitata": "^1.0.28", "nodemon": "^2.0.22", "rimraf": "^5.0.5", "ts-pattern": "^5.6.0", "typescript": "^5.2.2", "typescript-eslint": "^8.35.1" }, "scripts": { "test": "node --test ./tests/*.test.mjs", "lint": "eslint src/*.mjs dates/**/*.mjs tests/*.mjs", "build": "pnpm run build:esbuild", "build:check": "node ./tests/browser/exports.js", "build:clean": "rimraf dist/ dates/index.js dates/utc/index.js; mkdir -p dist/", "build:all": "pnpm run build:clean ; pnpm run build ; pnpm run build:check", "build:watch": "pnpm run build:clean; nodemon ./build-config/esbuild.mjs", "build:esbuild": "node ./build-config/esbuild.mjs", "bench": "node ./bench/run.mjs" } }