Skip to content

zum281/ndoc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ndoc

version CI license

demo

Browse Node.js API documentation from your terminal.

Requirements

  • curl (required)
  • glow or bat (optional, for better rendering)
  • jq (optional, for reliable --list output)

Installation

Install script (recommended)

curl -fsSL https://raw.githubusercontent.com/zum281/ndoc/main/install.sh | bash

Downloads the latest release and verifies its SHA-256 checksum before installing. Installs to /usr/local/bin by default — override with NDOC_INSTALL_DIR:

NDOC_INSTALL_DIR=~/.local/bin curl -fsSL https://raw.githubusercontent.com/zum281/ndoc/main/install.sh | bash

Manual (specific version)

VERSION=1.0.0
curl -fsSL "https://github.com/zum281/ndoc/releases/download/v${VERSION}/ndoc" \
  -o /usr/local/bin/ndoc
chmod +x /usr/local/bin/ndoc

From source

git clone https://github.com/zum281/ndoc.git
ln -s "$PWD/ndoc/ndoc" /usr/local/bin/ndoc

Usage

ndoc fs                  # Full fs module docs
ndoc fs.readFile         # Only the readFile section
ndoc --list              # List all available modules
ndoc --version           # Show ndoc version
ndoc --help              # Show help

How it works

Fetches Markdown source directly from the Node.js GitHub repository and renders it in your terminal via glow, bat, or less.

License

MIT

About

Browse Node.js API documentation from your terminal.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages