@qingclouds/shared
TypeScript icon, indicating that this package has built-in type declarations

1.5.6 • Public • Published

天下武功,唯快不破

//支持各种es6花式使用
import { patterns } from '@qingclouds/shared'
import shared, { UseStorage } from '@qingclouds/shared'
import { isWeiXin } from '@qingclouds/shared'

console.log(patterns.isMobile('13036223296'))
console.log(shared.platform.getPlatForm())
console.log(isWeiXin())

//以srorage为例
const { storage } = UseStorage
storage.set('A', 1)
storage.set('B', 1)
storage.set('C', 1)
storage.remove('A')
storage.get('B')
storage.clear()
// 为了降低打包体积,所以es 包里面没有带第三方依赖进来。自行安装即可
import Schema from 'validate';

Readme

Keywords

none

Package Sidebar

Install

npm i @qingclouds/shared

Weekly Downloads

0

Version

1.5.6

License

MIT

Unpacked Size

396 kB

Total Files

17

Last publish

Collaborators

  • function