All Projects → axetroy → wxapp-storage

axetroy / wxapp-storage

Licence: MIT license
简单的微信小程序Storage相关的封装, 特点是安全的数据源, 有效的存储时间

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to wxapp-storage

Metro-Weapp
微信小程序-上海地铁Lite
Stars: ✭ 15 (+15.38%)
Mutual labels:  wxapp, wx
wxfortune
运势小程序,使用canvas绘画图片,并保存图片
Stars: ✭ 79 (+507.69%)
Mutual labels:  wxapp, wx
wx-ant-ble
微信、支付宝小程序BLE蓝牙SDK
Stars: ✭ 75 (+476.92%)
Mutual labels:  wxapp, wx
taroCloud
记日常、GitHub trending资讯小程序 taro-hooks + rematch+云开发
Stars: ✭ 25 (+92.31%)
Mutual labels:  wxapp, wx
face-login-wx
人脸识别登录微信小程序
Stars: ✭ 77 (+492.31%)
Mutual labels:  wxapp, wx
sea-ai
微信小程序 智能识别小程序 接入百度AI平台 基于wepy开发
Stars: ✭ 42 (+223.08%)
Mutual labels:  wxapp, wx
cloudFns
微信小程序云函数合集
Stars: ✭ 34 (+161.54%)
Mutual labels:  wxapp, wx
citySelector
🛳基于mpvue的微信小程序 城市/区县定位选择模块 汉字/拼音搜索 可直接使用 已更新
Stars: ✭ 52 (+300%)
Mutual labels:  wxapp, wx
Weixin Java Miniapp Demo
基于Spring Boot 和 WxJava 实现的微信小程序Java后端Demo
Stars: ✭ 779 (+5892.31%)
Mutual labels:  wxapp, wx
Cityselector
微信小程序 城市/区县定位选择模块 汉字/拼音搜索 可直接使用 另附 mpvue 版本 city picker / auto positioning / auto complete
Stars: ✭ 276 (+2023.08%)
Mutual labels:  wxapp, wx
Weapp
🐧 微信小程序组件和功能封装,基于微信Component自定义组件开发
Stars: ✭ 235 (+1707.69%)
Mutual labels:  wxapp, wx
Wxgame Threejs
Threejs 开发微信小游戏
Stars: ✭ 111 (+753.85%)
Mutual labels:  wxapp, wx
Wxdatabasedecryptkey
读取微信数据库聊天记录备份
Stars: ✭ 237 (+1723.08%)
Mutual labels:  wxapp, wx
wx iciba
金山词霸(iciba)基于微信小程序wepy版本,可做wepy学习案例,
Stars: ✭ 29 (+123.08%)
Mutual labels:  wxapp
wx-tool
微信小程序工具类
Stars: ✭ 31 (+138.46%)
Mutual labels:  wx
wxapp-typescript
使用TypeScript开发微信小程序
Stars: ✭ 22 (+69.23%)
Mutual labels:  wxapp
Cloud Doc
一个在线文档阅读的微信小程序
Stars: ✭ 254 (+1853.85%)
Mutual labels:  wxapp
ui
We reinvent the UI for taro3+
Stars: ✭ 48 (+269.23%)
Mutual labels:  wx
mpvue canvas drawer
[mpvue版本]微信小程序上canvas绘制图片助手,一个json就制作分享朋友圈图片
Stars: ✭ 43 (+230.77%)
Mutual labels:  wxapp
Wx selectarea
微信小程序-省市(区)地址选择联动 🌋
Stars: ✭ 251 (+1830.77%)
Mutual labels:  wxapp

wxapp-storage

Greenkeeper badge Build Status Dependency License Prettier Node npm version

Git Package Manager, make you manage the repository easier

Installation

npm install @axetroy/wxapp-storage

Features

  • 存储绝大多数的数据类型(微信原生对象只支持object/string)
  • 设置有存储时限
  • 优雅的API

Usage

// usage
import Storage from '@axetroy/wxapp-storage';
const store = new Storage(wx);

store.set('userinfo',{
  username: 'axetroy',
  age: 'Forever Young'
});

console.log(store.get('userinfo'));

API

store.set(key:string, value:any, expiration:number):this

存储

store.get(key:string):any

store.remove(key:string):this

store.clear():this

Contributing

git clone https://github.com/axetroy/wxapp-storage.git
cd ./wxapp-storage
yarn

You can flow Contribute Guide

Contributors


Axetroy

💻 🔌 ⚠️ 🐛 🎨

License

The MIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].