Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | - | - | ||||
LICENSE | D | 12-May-2024 | 2 KiB | 47 | 36 | |
README.md | D | 12-May-2024 | 499 | 24 | 18 | |
abbrev.js | D | 12-May-2024 | 1.7 KiB | 62 | 52 | |
package.json | D | 12-May-2024 | 1.4 KiB | 62 | 61 |
README.md
1# abbrev-js 2 3Just like [ruby's Abbrev](http://apidock.com/ruby/Abbrev). 4 5Usage: 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 23This is handy for command-line scripts, or other cases where you want to be able to accept shorthands. 24