cordova-android/node_modules/abbrev
2017-09-05 11:04:12 -07:00
..
abbrev.js CB-12609: checking in updated node_modules 2017-03-27 22:23:09 -07:00
LICENSE updated cordova-common dependnecy to 1.1.0 2016-02-24 09:50:07 -08:00
package.json updated bundled node_modules 2017-09-05 11:04:12 -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.