0.0.2 • Published 8 years ago

jk-draft-store v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

JK-Draft-Store

A persistent and structured store for managing draft data.

Installation

$ npm i --save jk-draft-store

Usage

import { draftStore } from 'jk-draft-store'

// Create sub stores
const userStore = draftStore.category('SuneBear')
const infoStore = userStore.categrory('info')

// Do great things
infoStore.set('bio', 'Everyone is the other and no one is himself.')

API

Since we started using TypeScript as the scripting language, which is strict a superset of JavaScript. Programming with the power of type system, the repo contains API interfaces, declarations, not only implementation of library. I believe a conversational inteface rather than writing a documentation by hand, So there is no API documentation provided. If you want to see how to use the library, please check out test and example.

License

MIT