nac

node-aho-corasick

simple AhoCorasick

Showing:

Popularity

Downloads/wk

39

GitHub Stars

8

Maintenance

Last Commit

6yrs ago

Contributors

0

Package

Dependencies

2

Size (min+gzip)

1.4KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

node-AhoCorasick

Build Status Coverage Status Dependency Status devDependency Status

Aho–Corasick string matching algorithm

Installation

npm install node-aho-corasick

Example

var AhoCorasick = require('node-aho-corasick');

ac = new AhoCorasick();
ac.add('123');
ac.add('321');
ac.build();
var res = ac.search('12321');
// ["123","321"]

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100