0.0.4 • Published 6 years ago

@ya-wxapp-org/sync v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

sync

NPM version NPM downloads

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

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. 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