0.0.6 • Published 8 years ago

patch-drafts v0.0.6

Weekly downloads
1
License
AGPL-3.0
Repository
-
Last release
8 years ago

Patch-drafts

A module for storing and retreiving drafts of messages in patch-* family apps. Drafts are persisted to localStorage.

You'll need to understand depject (a module for a different way of managing dependency injection), and for hte example below, depnest - a lazy way to write nested objects quickly.

API

drafts.sync.get (key) - fetch the draft stored under key drafts.sync.set (key, text) - set/ save some draft text under key drafts.sync.remove (key) - delete a draft set under key

Note key can be a String or a Object

0.0.6

8 years ago

0.0.5

8 years ago