Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
499 bytes
|
Line | |
---|
1 | # abbrev-js
|
---|
2 |
|
---|
3 | Just like [ruby's Abbrev](http://apidock.com/ruby/Abbrev).
|
---|
4 |
|
---|
5 | Usage:
|
---|
6 |
|
---|
7 | var abbrev = require("abbrev");
|
---|
8 | abbrev("foo", "fool", "folding", "flop");
|
---|
9 |
|
---|
10 | // returns:
|
---|
11 | { fl: 'flop'
|
---|
12 | , flo: 'flop'
|
---|
13 | , flop: 'flop'
|
---|
14 | , fol: 'folding'
|
---|
15 | , fold: 'folding'
|
---|
16 | , foldi: 'folding'
|
---|
17 | , foldin: 'folding'
|
---|
18 | , folding: 'folding'
|
---|
19 | , foo: 'foo'
|
---|
20 | , fool: 'fool'
|
---|
21 | }
|
---|
22 |
|
---|
23 | This is handy for command-line scripts, or other cases where you want to be able to accept shorthands.
|
---|
Note:
See
TracBrowser
for help on using the repository browser.