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

@wok-cli/plugin-deploy-lftp

v1.0.2

Published

A @wok-cli/tasks/deploy plugin to upload files with lftp.

Readme

LFTP Deploy Adapter Plugin

You can use this plugin with the deploy task of @wok-cli/tasks to add the ability to upload and sync your files via FTP, SFTP, FTPS.

This package implements node-ftp and requires lftp to be installed on your machine.

| Hook types | Production only | Purpose | | ---------- | --------------- | ------------ | | promise | no | build deploy |

Why lftp?

lftp comes with a mirroring feature that tries to keep your local and remote files in sync, removing old files and uploading updated or new files only.

If you have just an ftp connection to your remote host this is the closest you can get to rsync.

Installation

This task requires @wok-cli/core as peer dependency.

npm i @wok-cli/core @wok-cli/plugin-deploy-lftp --save-dev

Usage

First of all update or add your remote target to the wok.config.js file and set the deploy strategy to either 'ftp', 'sftp' or 'ftps' (depending on your remote host's configuration).

// wok.config.js
module.exports = {
  // .... other configs

  targets: {
    ftpserver: {
      host: 'ftp.mydomain.com',
      username: 'ftpuser',
      password: 'password',
      path: 'public',
      deployStrategy: 'ftp',
    },
  },
};

Notes:

  • targets.ftpserver.path will be used as the remote base directory for upload.
  • @wok-cli/plugin-deploy-lftp will ignore any target with other deployStrategy.

Then configure the plugin as a strategy for @wok/tasks's deploy task:

const $ = require('@wok-cli/core');
const { deploy } = require('@wok-cli/tasks');
const lftp = require('@wok-cli/plugin-deploy-lftp');

const deployTask = $.task(deploy, {
  src: 'dist/', // folder where the compiled files is stored
});

deployTask.tap('strategy', 'lftp', lftp);

export.deploy = deployTask

Finally to upload your files run:

gulp deploy --target=ftpserver

Default Deploy Strategy

You can define ftp as the default deploy strategy by adding a deployStrategy key to the root of your wok config object:

// wok.config.js
module.exports = {
  // .... other configs

+ deployStrategy: 'ftp',
  targets: {
    ftpserver: {
      host: 'ftp.mydomain.com',
      username: 'ftpuser',
      password: 'password',
      path: 'public',
-     deployStrategy: 'ftp',
    },
  },
};