miniprogram-versions
v1.2.1863
Published
Wechat Miniprogram Base Lib Versions
Downloads
4,284
Maintainers
Readme
Wechat Miniprogram Base Library Versions
Useage
Get latest or most popular version:
const { latest, mostPopular } = require('miniprogram-versions');
console.log('The latest version:', latest);
// 3.6.5
console.log('The most popular version:', mostPopular);
// 3.6.4
Get all versions sorted by version or persentage.
const { versions, sortedByPercent } = require('miniprogram-versions');
console.log('all versions:', versions);
/*
[
{ "percentage": 0.01, "sdkVer": "3.6.5" },
{ "percentage": 69.31, "sdkVer": "3.6.4" },
{ "percentage": 19.23, "sdkVer": "3.6.3" },
{ "percentage": 0, "sdkVer": "3.6.2" },
{ "percentage": 0, "sdkVer": "3.6.1" }
...
]
*/
console.log('sorted versions by persentage:', sortedByPercent);
/*
[
{ "percentage": 69.31, "sdkVer": "3.6.4" },
{ "percentage": 19.23, "sdkVer": "3.6.3" },
{ "percentage": 4.1, "sdkVer": "3.5.8" },
{ "percentage": 1.77, "sdkVer": "3.3.5" },
{ "percentage": 1.72, "sdkVer": "3.4.10" }
...
]
*/
Get versions in iOS or Android.
const { android, iOS } = require('miniprogram-versions');
console.log('android versions', android);
console.log('android latest version', android.latest);
console.log('iOS versions', iOS);
console.log('iOS latest version', iOS.latest);
Manual Update Data
yarn update
更新时间
更新时间:2024 年 11 月 8 日