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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@wzytop/wzy-hook

v1.0.2

Published

module.exports = {

Readme

module.exports = {

// 如果有多份配置可以使用数组来存放配置,如一份配置用于部署长久缓存的文件,另一份配置用于部署没有缓存的文件(html)
deployer: [{
        folder: 'ssfe/flowtest',
        dir: 'dist/',
        pattern: '**/*',
        replace: false,
        cache: true
    },

    // 还可以使用函数来返回配置,其中的 data 为 git仓库相关信息
    function (data) {
        return {
            folder: 'ssfe/flowtest',
            dir: ' html/',
            pattern: '**/*',
            replace: true,
            cache: false
        }
    },
],

// 如果只是一份配置,可以直接写上配置
ftpDeployer: {
    folder: 'ssfe/flowtest',
    dir: 'dist/',
    pattern: '**/*'
}

};


5. **一些特别配置,如部署完成后,可以邮件通知;又如,可通过返回的 data 参数,来决定是否部署及部署参数:**
```js
module.exports = {
    deployer: {

        // 邮件通知,写上该参数,部署情况会通过邮件方式通知,多个邮箱可以用逗号隔开
        mailTo: '[email protected], [email protected]',
        folder: 'ssfe/flowtest',
        dir: 'dist/',
        pattern: '**/*',
        replace: false,
        cache: true
    },
    ftpDeployer: function (data) {
        let config = {

            // 是否部署
            enable: false
        };
        if (data && data.commits && data.commits.length > 0) {
            const msg = data.commits[0].message;

            // 最新一条提交信息中包括 __FTPDEPLOY__ 这个触发关键词才部署
            if (msg.indexOf('__FTPDEPLOY__') >=0) {
                config = {
                    // 确认部署
                    enable: true,
                    folder: 'ssfe/flowtest_ftp',
                    dir: 'dist/',
                    pattern: '**/*'
                }
            }
        }
    }
};