Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ngot/abbrev-js
abbrev-js for fibjs
https://github.com/ngot/abbrev-js
Last synced: about 2 months ago
JSON representation
abbrev-js for fibjs
- Host: GitHub
- URL: https://github.com/ngot/abbrev-js
- Owner: ngot
- License: mit
- Created: 2014-07-13T05:58:07.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-07-13T06:21:37.000Z (over 10 years ago)
- Last Synced: 2024-10-16T21:26:54.947Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 133 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# abbrev-js
Just like [ruby's Abbrev](http://apidock.com/ruby/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.