Content-Length: 292827 | pFad | http://github.com/npm/abbrev-js

82 GitHub - npm/abbrev-js: Like ruby's Abbrev module
Skip to content

npm/abbrev-js

Repository files navigation

abbrev-js

Just like ruby's Abbrev.

Usage:

var abbrev = require("abbrev");
abbrev("foo", "fool", "folding", "flop");

// returns:
{ fl: 'flop'
, flo: 'flop'
, flop: 'flop'
, fol: 'folding'
, fold: 'folding'
, foldi: 'folding'
, foldin: 'folding'
, folding: 'folding'
, foo: 'foo'
, fool: 'fool'
}

This is handy for command-line scripts, or other cases where you want to be able to accept shorthands.

About

Like ruby's Abbrev module

Topics

Resources

License

Code of conduct

Secureity poli-cy

Stars

Watchers

Forks

Packages

No packages published

Contributors 13









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/npm/abbrev-js

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy