cordova-android/node_modules/abbrev
Christopher J. Brody 6758793f09 CB-14145 commit updated node_modules in 7.1.x only
(installed by npm@6.1.0)
2018-07-11 08:57:13 -04:00
..
abbrev.js CB-14145 commit updated node_modules in 7.1.x only 2018-07-11 08:57:13 -04:00
LICENSE CB-14145 commit updated node_modules in 7.1.x only 2018-07-11 08:57:13 -04:00
package.json CB-14145 commit updated node_modules in 7.1.x only 2018-07-11 08:57:13 -04:00
README.md CB-14145 commit updated node_modules in 7.1.x only 2018-07-11 08:57:13 -04:00

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.