UNPKG

match-iz

Version:

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

94 lines 2.81 kB
{ "name": "match-iz", "browserGlobalName": "matchiz", "version": "5.1.1", "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": { ".": { "types": "./index.d.ts", "import": "./dist/index.mjs", "require": "./dist/index.js", "default": "./dist/index.js" }, "./dates": { "types": "./dates/index.d.ts", "import": "./dates/index.mjs", "require": "./dates/index.js", "default": "./dates/index.js" }, "./dates/utc": { "types": "./dates/utc/index.d.ts", "import": "./dates/utc/index.mjs", "require": "./dates/utc/index.js", "default": "./dates/utc/index.js" }, "./asserts": { "types": "./asserts/index.d.ts", "import": "./asserts/index.mjs", "require": "./asserts/index.js", "default": "./asserts/index.js" }, "./package.json": "./package.json" }, "files": [ "dist", "dates", "asserts", "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": { "@eslint/js": "^10.0.1", "compose-paths": "^1.3.0", "dedent": "^1.7.2", "esbuild": "^0.28.1", "eslint": "^10.7.0", "globals": "^17.7.0", "mitata": "^1.0.34", "nodemon": "^3.1.14", "rimraf": "^6.1.3", "ts-pattern": "^5.9.0", "typescript": "^5.9.3", "typescript-eslint": "^8.64.0" }, "scripts": { "test": "node --test ./tests/*.test.mjs", "test:coverage": "node --test --experimental-test-coverage --test-coverage-include='dist/**' --test-coverage-include='dates/**' --test-coverage-include='asserts/**' --test-coverage-exclude='**/tests/**' ./tests/*.test.mjs", "test:types": "tsc -p tests/types/tsconfig.json", "lint": "eslint .", "build": "pnpm run build:esbuild", "build:check": "node ./tests/browser/exports.js", "build:clean": "rimraf dist/ dates/index.js dates/utc/index.js asserts/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" } }