abbrev
Like ruby's abbrev module, but in js
Last updated 3 years ago by isaacs .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm 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

  • 1.1.1                                ...           latest (3 years ago)

8 Versions

  • 1.1.1                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.9                                ...           4 years ago
  • 1.0.7                                ...           5 years ago
  • 1.0.6                                ...           5 years ago
  • 1.0.5                                ...           6 years ago
  • 1.0.4                                ...           7 years ago
  • 1.0.3                                ...           9 years ago
Downloads
Today 1,286
This Week 188,202
This Month 118,130
Last Day 14,406
Last Week 163,064
Last Month 823,003
Dependencies (0)
None
Dev Dependencies (1)
Dependents (352)

Copyright 2014 - 2016 © taobao.org |