node/deps/npm/node_modules/abbrev
Rebecca Turner 3e12561b55 deps: upgrade to npm 2.11.2
PR-URL: https://github.com/nodejs/io.js/pull/1956
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
2015-06-15 10:15:55 -07:00
..
.npmignore deps: upgrade to npm 2.11.2 2015-06-15 10:15:55 -07:00
.travis.yml deps: upgrade to npm 2.11.2 2015-06-15 10:15:55 -07:00
CONTRIBUTING.md npm: upgrade to v1.4.14 2014-06-06 15:07:29 -07:00
LICENSE deps: upgrade npm to 2.11.0 2015-05-30 08:15:11 -04:00
README.md Include NPM, update .pkg to install it. 2011-11-21 10:50:52 -08:00
abbrev.js npm: upgrade to v1.4.14 2014-06-06 15:07:29 -07:00
package.json deps: upgrade to npm 2.11.2 2015-06-15 10:15:55 -07:00
test.js deps: upgrade to npm 2.11.2 2015-06-15 10:15:55 -07:00

README.md

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.