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

base64-encode-cli

v1.0.0

Published

Encode/decode Base64, hex, URL encoding from terminal

Downloads

113

Readme

base64-encode-cli

Encode and decode Base64, hex, and URL encoding from the terminal.

Install

npm install -g base64-encode-cli

Usage

# Base64
encode base64 "hello world"        # aGVsbG8gd29ybGQ=
encode base64d "aGVsbG8gd29ybGQ="  # hello world

# Hex
encode hex "hello"                  # 68656c6c6f
encode hexd "68656c6c6f"           # hello

# URL encoding
encode url "hello world & foo"      # hello%20world%20%26%20foo
encode urld "hello%20world"         # hello world

# Auto-detect (decode or encode all)
encode auto "aGVsbG8gd29ybGQ="     # detects Base64, decodes it
encode auto "hello world"           # no encoding detected, shows all formats

# Encode a binary file to Base64
encode file image.png

# Read from stdin
echo "hello" | encode base64 --stdin

# Read from file
encode base64 -f input.txt

# Copy to clipboard
encode base64 "secret" --copy

# Write to file
encode hex "data" --output encoded.txt

Commands

| Command | Description | |-----------|----------------------------| | base64 | Encode string to Base64 | | base64d | Decode Base64 string | | hex | Encode string to hex | | hexd | Decode hex string | | url | URL-encode a string | | urld | URL-decode a string | | auto | Auto-detect and decode/encode | | file | Encode binary file to Base64 |

Options

| Option | Description | |------------------|--------------------------| | -f, --file | Read input from file | | --stdin | Read input from stdin | | --copy | Copy result to clipboard | | --output <path>| Write result to file |

License

MIT