abbrev (1.1.1)

Published 2026-02-24 13:52:29 +00:00 by atheaadmin

Installation

registry=
npm install abbrev@1.1.1
"abbrev": "1.1.1"

About this package

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.

Dependencies

Development Dependencies

ID Version
tap ^10.1
Details
npm
2026-02-24 13:52:29 +00:00
1
Isaac Z. Schlueter
ISC
latest
2.2 KiB
Assets (1)
Versions (1) View all
1.1.1 2026-02-24