@mptool/enhance
Communication framework
Enhanced app startup
Extra lifecycles let you run any preloading work you want while the app starts or a page registersExtra lifecycle extensions
You can trigger preloading of other pages at any time, or notify the target page to prepare data during navigationLightweight
About 12.2 kBReferences
Reference pointers between parent and child components, and between components and pages, allow direct accessUnified events
Fully connects components, pages and the app. You can communicate or trigger events from almost anywhere
@mptool/file
File and storage framework
Automatic path handling
Paths are handled automatically, creating parent folders or overwriting files.Expiration support
Set a lifetime for stored data and expired entries are cleaned up automatically.Complex logic encapsulated
Wrappers for complex logic such as downloading files, unzipping archives and saving online files.
@mptool/net
Networking framework
Fetch API
Fetch-style API that also provides Headers and URLSearchParamsCookie support
Cookies are saved and attached fully automatically
@mptool/parser
HTML parser
@mptool/api
General API wrappers
@mptool/encoder
Encoder with UTF-8 / GBK / GB18030 support
@mptool/run
Custom JS interpreter
Dynamic execution
Execute dynamically delivered code in WeChat mini-programs, replacing the disabled `eval` and `new Function`Syntax support
All of ES5 plus common ES6 syntax, including `let/const`, arrow functions, template literals, destructuring, `class`, `async/await` and moreBuilt-in delegation
Built-in objects all reuse the host runtime, so every prototype and static method the host supports is availableLightweight
About 108.7 kB in size