UNPKG

jssm

Version:

A Javascript finite state machine (FSM) with a terse DSL and a simple API. Most FSMs are one-liners. Fast, easy, powerful, well tested, typed with TypeScript, and visualizations. MIT License.

136 lines (135 loc) 5.03 kB
{ "name": "jssm", "version": "5.72.4", "engines": { "node": ">=10.0.0" }, "exports": { "require": "./dist/jssm.es5.cjs.js", "import": "./dist/es6/jssm.js", "default": "./dist/jssm.es5.cjs.js", "browser": "dist/jssm.es5.iife.js" }, "autoupdate": { "source": "git", "target": "git://github.com/StoneCypher/jssm.git", "fileMap": [ { "basePath": "/dist", "files": [ "jssm.es5.cjs.js" ] } ] }, "description": "A Javascript finite state machine (FSM) with a terse DSL and a simple API. Most FSMs are one-liners. Fast, easy, powerful, well tested, typed with TypeScript, and visualizations. MIT License.", "main": "dist/jssm.es5.cjs.js", "module": "dist/es6/jssm.js", "browser": "dist/jssm.es5.iife.js", "types": "./jssm.d.ts", "scripts": { "jest-spec": "jest -c jest-spec.config.js --color --verbose", "jest-stoch": "jest -c jest-stoch.config.js --color --verbose", "jest": "npm run jest-spec", "jjest": "npm run jest-spec && npm run jest-stoch", "test": "npm run make && npm run jest", "rmgenerated": "rm -f src/ts/jssm-dot.ts && rm -f src/ts/version.ts && rm -f *.d.ts", "removedir": "rm -rf dist && rm -rf docs", "createdir": "mkdir dist && mkdir docs", "clean": "npm run removedir && npm run rmgenerated && npm run createdir", "peg": "rm -f src/ts/jssm-dot.js && pegjs src/ts/jssm-dot.peg && node src/buildjs/fixparser.js && rm src/ts/jssm-dot.js", "make_cjs": "rollup -c", "make_iife": "rollup -c rollup.config.iife.js", "typescript": "tsc --build tsconfig.json && cp dist/es6/*.d.ts .", "makever": "node src/buildjs/makever.js", "make": "npm run clean && npm run makever && npm run peg && npm run typescript && npm run make_iife && npm run make_cjs && npm run minify && npm run min_iife && npm run min_cjs && rm ./dist/es6/*.nonmin.js", "eslint": "eslint --color src/ts/jssm.ts src/ts/jssm_types.ts src/ts/tests/*.ts", "audit": "text_audit -r -t major MAJOR wasteful WASTEFUL any mixed fixme FIXME checkme CHECKME testme TESTME stochable STOCHABLE todo TODO comeback COMEBACK whargarbl WHARGARBL -g ./src/ts/**/*.{js,ts}", "vet": "npm run eslint && npm run audit", "benny": "node ./src/buildjs/benchmark.js", "build": "npm run vet && npm run test && npm run site && npm run changelog && npm run docs", "clean_bench": "npm run test && npm run benny", "qbuild": "npm run test", "ci_build": "npm run vet && npm run test", "minify": "mv dist/es6/jssm-dot.js dist/es6/jssm-dot.nonmin.js && terser dist/es6/jssm-dot.nonmin.js > dist/es6/jssm-dot.js", "min_iife": "mv dist/jssm.es5.iife.js dist/jssm.es5.iife.nonmin.js && terser dist/jssm.es5.iife.nonmin.js > dist/jssm.es5.iife.js", "min_cjs": "mv dist/jssm.es5.cjs.js dist/jssm.es5.cjs.nonmin.js && terser dist/jssm.es5.cjs.nonmin.js > dist/jssm.es5.cjs.js", "site": "cp src/site/* docs/ && cp -r src/assets docs/assets/", "docs": "typedoc src/ts/jssm.ts --options typedoc-options.js", "changelog": "rm -f CHANGELOG.md && rm -f ./src/doc_md/CHANGELOG.md && better_git_changelog -b && cp CHANGELOG.* ./src/doc_md/" }, "repository": { "type": "git", "url": "git+https://github.com/StoneCypher/jssm.git" }, "keywords": [ "finite", "state", "state machine", "state-machine", "machine", "finite-state-machine", "finite state machine", "fsm", "fsm-library", "js", "javascript", "javascript-library", "mit-license", "tested", "typed", "typed-js", "mealy", "moore", "mealy machine", "moore machine", "mealy-machine", "moore-machine", "graphviz", "viz.js", "fsl", "finite-state-language", "flowchart", "visualization", "TypeScript", "StoneCypher" ], "author": "John Haugeland <stonecypher@gmail.com>", "license": "MIT", "bugs": { "url": "https://github.com/StoneCypher/jssm/issues" }, "homepage": "https://stonecypher.github.io/jssm/", "devDependencies": { "@knodes/typedoc-plugin-pages": "^0.22.5", "@rollup/plugin-commonjs": "^22.0.0", "@rollup/plugin-node-resolve": "^13.3.0", "@rollup/plugin-replace": "^4.0.0", "@types/jest": "^27.0.2", "@typescript-eslint/eslint-plugin": "^4.13.0", "@typescript-eslint/parser": "^4.13.0", "benny": "^3.7.1", "coveralls": "^3.0.11", "eslint": "^7.32.0", "eslint-plugin-fp": "^2.3.0", "eslint-plugin-new-with-error": "^2.0.0", "eslint-plugin-promise": "^5.1.0", "eslint-plugin-react": "^7.26.1", "eslint-plugin-unicorn": "^37.0.1", "fast-check": "^2.12.0", "glob": "^7.1.6", "jest": "^27.3.1", "pegjs": "^0.10.0", "rollup": "^2.72.1", "semver": "^5.7.1", "terser": "^5.13.1", "text_audit": "^0.9.3", "ts-jest": "^27.0.7", "typedoc": "^0.22.15", "typescript": "^4.6.4" }, "dependencies": { "better_git_changelog": "^1.6.1", "reduce-to-639-1": "^1.0.4" } }