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.0.0

Published

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

Readme

SEC CLI Downloader

A lightweight CLI tool to download SEC filings directly from the SEC website.

一個輕量級命令行工具,用於從美國 SEC 官網下載公司財報與申報文件。


Features

  • Download filings by ticker and year
  • Support latest lookup
  • Local caching for ticker-to-CIK and filings metadata
  • Avoid duplicate downloads
  • Support custom filing forms such as 10-K, 10-Q, and 8-K
  • Support download limits for multi-filing years
  • Support cache refresh and custom output directory

Project Structure

  • sec.js: CLI entrypoint, SEC API requests, cache handling, filtering, and file download logic
  • cache/: cached ticker/CIK mapping and recent filings metadata
  • downloads/: downloaded SEC filing documents grouped by ticker
  • package.json: package metadata and dependencies

Installation

git clone https://github.com/your-username/sec-cli-downloader.git
cd sec-cli-downloader
npm install

Usage

node sec.js <ticker> <year|latest> [options]

Examples:

node sec.js AAPL 2023
node sec.js AAPL latest
node sec.js MSFT latest --form 10-Q --limit 2
node sec.js GOOGL 2024 --output ./reports --refresh-cache

Options:

  • --form <type>: filing form to download, default is 10-K
  • --limit <number>: maximum number of filings to download
  • --output <dir>: custom download directory
  • --refresh-cache: fetch fresh filings metadata instead of using cache

Environment variable:

  • SEC_USER_AGENT: custom SEC-compliant User-Agent string

Roadmap

  • [x] Support latest filing download
  • [x] Add local caching for CIK and filings metadata
  • [x] Avoid duplicate downloads
  • [x] Support multiple filing forms
  • [x] Add limit control for multi-filing downloads
  • [x] Add cache refresh support
  • [x] Add custom output directory support
  • [ ] Add tests for filtering and CLI parsing
  • [ ] Add batch download support for multiple tickers