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

sec-cli-downloader

v1.1.0

Published

CLI tool to download SEC filings (10-K, 10-Q) from SEC EDGAR

Downloads

61

Readme

sec-cli-downloader

A lightweight CLI for downloading SEC EDGAR filings.

一个轻量级命令行工具,用于下载美股上市公司的 SEC 财报。

Features

  • Download filings by ticker and year
  • Download the latest filing with latest
  • Support multiple tickers such as AAPL,MSFT
  • Support multiple form types such as 10-K, 10-Q, 8-K
  • Skip files that already exist
  • Cache SEC metadata locally
  • Download to a custom directory with --output

Installation

npm install -g sec-cli-downloader

The SEC expects a descriptive user agent. Set your email before using the CLI:

export SEC_USER_AGENT="[email protected]"

Usage

sec <ticker[,ticker...]> <year|latest> [options]

Options:

  • -f, --form <type> SEC form type, default 10-K
  • -l, --limit <number> maximum number of filings to download
  • -o, --output <dir> download directory, default ./downloads
  • --refresh-cache ignore cached SEC metadata

Examples

# Download a 10-K for a specific year
sec AAPL 2023

# Download the latest 10-K
sec GOOGL latest

# Download 10-Q filings
sec MSFT latest --form 10-Q

# Download multiple tickers
sec AAPL,MSFT latest --limit 2

# Download to a custom directory
sec NVDA 2024 --output ./reports

# Run without a global install
npx sec-cli-downloader AAPL latest --output ./reports

Output

By default, filings are saved to:

./downloads/<TICKER>/

With a custom output directory:

<your-output-dir>/<TICKER>/

Cache

SEC metadata is cached for 24 hours in:

~/.sec-cli-downloader/cache/

Set SEC_CACHE_DIR if you want to override the cache location.