cordova-android/node_modules/nopt/node_modules/abbrev
2015-11-02 17:07:38 -08:00
..
.npmignore CB-9782 Implements PlatformApi contract for Android platform. 2015-10-20 12:21:30 +03:00
.travis.yml CB-9782 Implements PlatformApi contract for Android platform. 2015-10-20 12:21:30 +03:00
abbrev.js CB-9782 Implements PlatformApi contract for Android platform. 2015-10-20 12:21:30 +03:00
CONTRIBUTING.md CB-9782 Implements PlatformApi contract for Android platform. 2015-10-20 12:21:30 +03:00
LICENSE CB-9782 Implements PlatformApi contract for Android platform. 2015-10-20 12:21:30 +03:00
package.json checked in missing node_module dependencies that are required 2015-11-02 17:07:38 -08:00
README.md CB-9782 Implements PlatformApi contract for Android platform. 2015-10-20 12:21:30 +03:00
test.js CB-9782 Implements PlatformApi contract for Android platform. 2015-10-20 12:21:30 +03: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.