# fsajs

> Library for creating fsa and testing if they accept specified strings.

Latest version **0.0.21** (published 2014-06-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install fsajs
pnpm add fsajs
yarn add fsajs
bun add fsajs
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.21 |
| Published | 2014-06-29 |
| First published | 2014-06-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | FranciscoM |
| Maintainers | fmont006 |
| Keywords | fsa |

## Links

- npm: https://www.npmjs.com/package/fsajs
- Repository: https://github.com/fmont006/fsajs
- Issues: https://github.com/fmont006/fsajs/issues
- npm.io page: https://npm.io/package/fsajs

## Dependencies (1)

- [underscore](https://npm.io/package/underscore.md) ~1.6.0

## Recent versions

- 0.0.21 (latest) — 2014-06-29
- 0.0.2 — 2014-06-29
- 0.0.15 — 2014-06-21
- 0.0.14 — 2014-06-16
- 0.0.131 — 2014-06-16
- 0.0.13 — 2014-06-16
- 0.0.122 — 2014-06-13
- 0.0.121 — 2014-06-13
- 0.0.12 — 2014-06-13
- 0.0.11 — 2014-06-13
- 0.0.1 — 2014-06-13
- 0.0.0 — 2014-06-13

## README

fsajs
=====

Library for creating finite state automata and testing if they accept a given string.

```coffeescript
fsajs = require('fsajs').fsajs # import the module

fsa = fsajs.createFSA() # configure fsa
	.addState 
	  name: 'pepe' 
	  transitions:[{stateName:'other', symbol:'c'},{stateName:'otherState', symbol:'b'}]
	  initialState: true
	.addState 
	  name: 'otherState', 
	  transitions:[{stateName:'other', symbol:'c'},{stateName:'otherState', symbol:'b'}], 
	  finalState: true
	.addState 
	  name: 'other', 
	  transitions:[{stateName:'pepe', symbol:'c'},{stateName:'otherState', symbol:'b'}] 

fsa.acceptsString 'bcccb' # returns true 

fsa.acceptsString 'bccbb' # returns false 
```

---
_Source: https://npm.io/package/fsajs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
