Urara-Blog/node_modules/.pnpm-store/v3/files/a7/4318f344479cd976e006d4aaf4d5acfe11330aab008e7e4629d132bd14edbdb21d0ad47083a90ab4bf246ff4a94568ab123821947b65f59bbbf3d0f533cf96
2022-08-14 01:14:53 +08:00

23 lines
499 B
Text

# 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.