abbrev
Like ruby's abbrev module, but in js
Last updated 8 years ago by isaacs .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ npm install abbrev 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 3.0.0                                ...           latest (2 months ago)

10 Versions

  • 3.0.0                                ...           2 months ago
  • 2.0.0                                ...           2 years ago
  • 1.1.1                                ...           7 years ago
  • 1.1.0                                ...           8 years ago
  • 1.0.9                                ...           8 years ago
  • 1.0.7                                ...           9 years ago
  • 1.0.6                                ...           9 years ago
  • 1.0.5                                ...           11 years ago
  • 1.0.4                                ...           12 years ago
  • 1.0.3                                ...           14 years ago
Maintainers (1)
Downloads
Total 14
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE