7fife-backend/node_modules/abbrev
Nawaaz b8a5323689 updated code 2024-03-11 17:59:54 +05:30
..
LICENSE update code 2024-03-07 18:31:44 +05:30
README.md update code 2024-03-07 18:31:44 +05:30
abbrev.js update code 2024-03-07 18:31:44 +05:30
package.json updated code 2024-03-11 17:59:54 +05:30

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.