ssbc/patch-drafts

Name: patch-drafts

Owner: Secure Scuttlebutt Consortium

Description: null

Created: 2018-03-25 21:24:56.0

Updated: 2018-03-25 21:25:28.0

Pushed: 2018-03-25 21:25:26.0

Homepage: null

Size: 39

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

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


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.