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

ftp-webpack-plugin

v1.0.0

Published

an ftp webpack plugin

Readme

#ftp-webpack-plugin 前言:土豪用CDN,穷逼只能ftp啦,近一年都在搞weex开发,页面的渲染依赖webpack打包后的bundlejs文件,不想每次都手动上传,整了一个简单的webpack自动上传打包后文件的插件,适用所有webpack项目,关于linux搭建ftp,google一堆,就不赘述了

##安装说明 ###1、安装依赖

    npm install ftp-webpack-plugin --save-dev
    or
    yarn add ftp-webpack-plugin -d

###2、配置wepack.config文件

    // 示例为weex项目的webpack的prod环境配置,这样做是为了只在发布生成环境时才去打包上传
    const ftpWebpackPlugin = require('ftp-webpack-plugin');
    const weexConfig = webpackMerge(commonConfig[1], {
        ... //其他配置
        plugins: [
            new weexFtp({
              host: '',  // ftp服务器地址, 默认localhost
              port: '', // ftp端口,默认21
              user: '', // 登录ftp用户名 默认'anonymous'
              password: '', //登录ftp密码 默认 'anonymous@'
              remotePath: '' // ftp工作目录,默认'/',
              //最好指定一个空文件夹,目前版本不能判断文件夹是否存在,因此会直接将local目录全部sync到指定文件夹
            })
        ]
    })

###3、Change Log

####v1.0.0 •实现文件同步到ftp服务器 •暂时还不能实现查询文件夹是否存在