node/deps/npm/node_modules/abbrev
Rebecca Turner d538811fc8 deps: upgrade npm to 3.10.2
Contains the following npm releases:
- https://github.com/npm/npm/releases/tag/v3.9.6
- https://github.com/npm/npm/releases/tag/v3.10.0
- https://github.com/npm/npm/releases/tag/v3.10.1
- https://github.com/npm/npm/releases/tag/v3.10.2

PR-URL: https://github.com/nodejs/node/pull/7410
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
2016-06-27 11:46:15 +02: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 npm to 3.10.2 2016-06-27 11:46:15 +02: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.