| Name | Last modified | Size | Description | |
|---|---|---|---|---|
| Parent Directory | - | |||
| README.md | 2010-10-04 18:52 | 499 | f12eb36 documentaiton updates [كارل مبارك] | |
| abbrev.js | 2017-02-14 06:29 | 1.7K | ||
| LICENSE | 2017-09-28 02:46 | 2.0K | 7375cab EXHIBTION: fix overflow ellipsis cutoff [كارل مبارك] | |
| package.json | 2023-06-09 12:49 | 1.4K | 7375cab EXHIBTION: fix overflow ellipsis cutoff [كارل مبارك] |
# abbrev-js
Just like [ruby's Abbrev](http://apidock.com/ruby/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.