npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@cloudbase/extension-ci-wxmp

v0.1.2

Published

Readme

数据万象Cloud Infinite(扩展)

Usage

请先到腾讯云控制台上开通对应的数据万象扩展

const extCi = require('@cloudbase/extension-ci-wxmp')

const res = await extCi.invoke(opts)

opts包含以下属性

|名称|类型|是否必须|说明 |-|-|-|-| |action|string|是|操作类型| |cloudPath|string|是|文件的绝对路径,与tcb.uploadFile中一致,除盲水印功能外,其它功能必须存在此路径的文件| |fileContent|Uint8Array|Buffer|ArrayBuffer|否|文件内容, 盲水印选传| |operations|object|否|数据万象的headers中的Pic-Operations字段,图像处理或者盲水印功能时需要填入的参数|

action目前包含以下类型

  • DetectLabel
  • DetectType
  • WaterMark
  • ImageProcess

fileContent在小程序中的获取方式参考

const readFile = async function() {
    let res = await new Promise(resolve=>{
        wx.chooseImage({
            success: function(res) {
                let filePath = res.tempFilePaths[0]
                let fm = wx.getFileSystemManager()
                fm.readFile({
                    filePath,
                    success(res){
                        resolve(res)
                    }
                })
            }    
        })
    })
    return res
}
let fileContent = await readFile()

功能说明

图像处理

参考文档万象文档 云上数据处理

const ops = {
    rules:[{
        rule:'QRcode/cover/0'
    }]
}

const res = await extCi.invoke({
    cloudPath: "bb.png",
    action:'ImageProcess',
    operations:ops
})

console.log(JSON.stringify(res,null,4))
}

盲水印

参考文档万象文档 盲水印功能

const ops = {
    rules:[{
        fileid:'qr6.jpg'
        rule:{
            mode:3,
            type:3,
            text:'1234'
        }
    }]
}

const res = await extCi.invoke({
    action:'WaterMark',
    cloudPath: "qr5.jpg",
    fileContent //非必须
    operations:ops
})

图片标签

参考文档万象文档 图片标签

const res = await extCi.invoke({
    action:'DetectLabel',
    cloudPath: "ab.png"
})

console.log(JSON.stringify(res,null,4))

安全审核

参考文档万象文档 内容识别


const opts = {
    type: "porn" // 审核类型:porn(涉黄识别)、terrorist(涉暴恐识别)、politics(涉政识别)、ads(广告识别),可选择多种识别类型,如porn,ads
}
const res = await extCi.invoke({
    action:'DetectType',
    operations:opts,
    cloudPath: "ab.png"
})

console.log(JSON.stringify(res,null,4))