Skip to content
Like ruby's Abbrev module
JavaScript
Find file
Latest commit 0030c79 Sep 27, 2015 @isaacs tap@2
Failed to load latest commit information.
.gitignore gitignore May 30, 2015
.travis.yml travis ci file Jun 3, 2015
CONTRIBUTING.md Contributing Feb 11, 2013
LICENSE isc license May 20, 2015
README.md Initial commit. Mar 9, 2010
abbrev.js Split up main and test scripts, support use_strict Apr 17, 2014
package.json tap@2 Sep 27, 2015
test.js update tests for tap with coverage May 30, 2015

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.

Something went wrong with that request. Please try again.