@ya-wxapp-org/sync
v0.0.4
Published
wxapp sync
Downloads
30
Readme
sync
Install
yarn add @ya-wxapp-org/sync
Usage
import Sync, { register, remove, clear } from '@ya-wxapp/sync'
register('test')
Sync.registers
//=> ['test']
Sync.test = 1
//=> localStorage.test = 1
console.log(Sync.test)
//=> 1
remove('test')
// remove localStorage.text
clear()
// clear all
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Author
sync © fimars, Released under the MIT License. Authored and maintained by fimars with help from contributors (list).
github.com/fimars · GitHub @fimars · Twitter @fimars