cordova-android/node_modules/abbrev
2016-10-17 10:50:30 -07:00
..
abbrev.js updated cordova-common dependnecy to 1.1.0 2016-02-24 09:50:07 -08:00
LICENSE updated cordova-common dependnecy to 1.1.0 2016-02-24 09:50:07 -08:00
package.json CB-12003 updated node_modules 2016-10-17 10:50:30 -07:00
README.md updated cordova-common dependnecy to 1.1.0 2016-02-24 09:50:07 -08: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.