![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | LICENSE | 2 years ago | 2.0K | f0d2fc9 test post-receive hook [كارل مبارك] |
![]() | README.md | 2 years ago | 499 | 15de0e0 styling, texts [كارل مبارك] |
![]() | abbrev.js | 2 years ago | 1.7K | |
![]() | package.json | 2 years ago | 509 | 120707f added node version q18.16 to dependincies [كارل مبارك] |
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.