{"library":"dfa","type":"library","category":null,"description":"A JavaScript library that compiles a regular-expression-like syntax into fast deterministic finite automata (DFA). Version 1.2.0 is the latest as of 2025, with no active development in recent years. It is designed for pattern matching against non-string sequences (e.g., arrays of symbols) and provides a portable state machine representation. Supports common regex operators like alternation, concatenation, repetition, and tagging. Files are written in a custom CoffeeScript-like DSL and compiled to efficient match tables.","language":"javascript","status":"maintenance","version":"1.2.0","tags":["javascript","state","machine","compiler"],"last_verified":"Fri May 01","install":[{"cmd":"npm install dfa","imports":["import compile from 'dfa/compile'","import dfa from 'dfa'","const compile = require('dfa/compile').default","import dfa from 'dfa'; dfa.compile(...)"]},{"cmd":"yarn add dfa","imports":[]},{"cmd":"pnpm add dfa","imports":[]}],"homepage":null,"github":"https://github.com/devongovett/dfa","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/dfa","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}