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

@ideadesignmedia/ftp

v1.0.3

Published

Run an explicit FTPS server on Windows using environment variables loaded from `config.json`.

Readme

FTPS Server on Windows (ftp-srv + @ideadesignmedia/config.js)

Run an explicit FTPS server on Windows using environment variables loaded from config.json.

Files

your-project/
  ├─ index.js
  ├─ config.json
  └─ ftproot/        (your exposed root; inside you can link drives C, D, E)

index.js

require("@ideadesignmedia/config.js");
require("@ideadesignmedia/ftp");

@ideadesignmedia/config.js loads config.json into process.env.
@ideadesignmedia/ftp starts the FTP server using those env vars.


Example config.json

Use values similar to yours, but not identical. Adjust paths and IPs for your machine.

{
  "FTPPORT": "21",
  "FTPIP": "203.0.113.25",
  "PASV_MIN": "50000",
  "PASV_MAX": "50050",
  "FTPUSERNAME": "siteuser",
  "FTPPASSWORD": "ChangeMe!42",
  "FTPPATH": "C:/ftproot",
  "FTPBLACKLIST": ["node_modules", ".git"],
  "FTPWHITELIST": ["uploads", "downloads"],

  "PRIV": "C:/ftps/ftp.key",
  "PUB": "C:/ftps/ftp.crt"

  // Or use PFX:
  // "PFX": "C:/ftps/ftps.pfx",
  // "PFX_PASS": "changeThisPass"
}
  • FTPPORT 21 with tls enabled means explicit FTPS (client must use AUTH TLS).
  • FTPIP should be your public IP for internet clients or your LAN IP for local testing.
  • PASV_MIN and PASV_MAX must be opened in Windows Firewall and forwarded on your router if used over the internet.
  • FTPPATH is the server root that users will see on login.

Expose multiple drives in FTPS

Create a single root and link drives into it. Run PowerShell as Administrator.

New-Item -Path 'C:\ftproot' -ItemType Directory -Force

New-Item -ItemType SymbolicLink -Path 'C:\ftproot\C' -Target 'C:\'
New-Item -ItemType SymbolicLink -Path 'C:\ftproot\D' -Target 'D:\'
New-Item -ItemType SymbolicLink -Path 'C:\ftproot\E' -Target 'E:\'

Or via CMD:

cmd /c mklink /D "C:\ftproot\C" "C:\"
cmd /c mklink /D "C:\ftproot\D" "D:\"
cmd /c mklink /D "C:\ftproot\E" "E:\"

Generate TLS certificate

Option A: OpenSSL

openssl req -newkey rsa:2048 -nodes -keyout C:\ftps\ftp.key -x509 -days 365 -out C:\ftps\ftp.crt

Option B: PowerShell PFX

$cert = New-SelfSignedCertificate -DnsName "your.domain.example" -CertStoreLocation "Cert:\LocalMachine\My" -KeyExportPolicy Exportable -NotAfter (Get-Date).AddYears(1)
$pwd  = ConvertTo-SecureString "changeThisPass" -AsPlainText -Force
Export-PfxCertificate -Cert $cert -FilePath "C:\ftps\ftps.pfx" -Password $pwd

Windows Firewall rules

New-NetFirewallRule -DisplayName "FTPS control 21" -Direction Inbound -Protocol TCP -LocalPort 21 -Action Allow
New-NetFirewallRule -DisplayName "FTPS passive 50000-50050" -Direction Inbound -Protocol TCP -LocalPort 50000-50050 -Action Allow

Client settings

  • Protocol: FTP
  • Encryption: Require explicit FTP over TLS
  • Host: your public IP or LAN IP
  • Port: 21
  • Transfer Mode: Passive
  • Username and password from config.json
  • Accept the certificate warning if self-signed

Run

node index.js

You should see something like:

[FTPS] TLS enabled with key/cert or pfx
FTP Enabled

Troubleshooting

  • Plain FTP works but FTPS fails → check key/cert paths and client encryption mode.
  • 502 command not supported → client using SFTP or implicit FTPS instead of explicit.
  • Data connection fails → open firewall/forward passive ports, and ensure FTPIP matches your public IP.