@belloai/transform
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

@belloai/transform

api 数据转组件用到的数据体

Usage

const Ls = require('@belloai/transform')

const ls = new Ls({
  notClearKeys: ['a'],
  passLocalStorageB64Key: 'b'
})

ls.set('a', 'aaaa')
ls.get('a') // 'aaaa'

ls.set('c', 'cccc')
ls.get('c') // 'cccc'

ls.getKeys() // ['a','c']

ls.clearAllExcept()

ls.getKeys() // ['a']
ls.get('a') // 'aaaa'
ls.get('c') // ''

ls.clear()

ls.getKeys() // []

ls.set('d', 'dddd')
ls.get('d') // 'dddd'
ls.remove('d')
ls.get('d') // ''

Readme

Keywords

Package Sidebar

Install

npm i @belloai/transform

Weekly Downloads

31

Version

0.1.4

License

ISC

Unpacked Size

350 kB

Total Files

22

Last publish

Collaborators

  • powan
  • elysion72513
  • thomas-ballo
  • ouxiaohui