Socket
Book a DemoInstallSign in
Socket

fakemp

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fakemp

wechat mini program api mock, used for test

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

fakemp Build Status

使用浏览器模拟微信小程序Api, 现仅支持Storage

Install

$ npm install fakemp -S

Usage

用法与微信小程序一致

const wx = require('fakemp')

wx.setStorageSync('foo', 'bar')
wx.getStorageSync('foo')  // bar

Api

.createInstance([options])

创建新的wx实例(多个小程序数据隔离时需要)

options
  • Type: object
namedescriptiondefault
appId小程序的appId, 用于隔离不同的storageMath.random()

License

MIT

Keywords

wechat

FAQs

Package last updated on 13 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts