Unravel-Me
Unravel-Me is a simple text unwrapper, expander or if you prefer--snippets, that expand in real time.
Installation and Usage.
To install simply do
npm install --save unravel-me
To initialize your snippets you must pass a JSON object to it. The key is the desired shortcut and the value is the expanded form.
// This is snippets.json. "jcd": "Jacaranda" "abf": "A quick brown fox jumps over the lazy dog." "ss": "strawberry shortcake" "th": "the"
;; // ***********// You must initialize the abbreviation map.// Place in your code where ever you see fit.// ***********Unravel; // ***********// If you want to pass the event and have unravel take care of the rest then simply// pass the event function to it. { Unravel;}