Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Like ruby's Abbrev module
JavaScript
branch: master

v1.0.7

latest commit 821d09ce7d
@isaacs authored
Failed to load latest commit information.
.gitignore gitignore
.travis.yml travis
CONTRIBUTING.md Contributing
LICENSE isc license
README.md Initial commit.
abbrev.js Split up main and test scripts, support use_strict
package.json v1.0.7
test.js update tests for tap with coverage

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.