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