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

anyconv

v1.0.2

Published

Convert anything from the command line — JSON, YAML, timestamps, base64, colors, bytes, number bases. Replace 50 ad-ridden converter websites with one CLI command.

Downloads

413

Readme

anyconv

The one CLI command that replaces 50+ ad-ridden converter websites. Convert JSON, YAML, timestamps, colors, byte sizes, number bases, and base64 — all from your terminal. No browser. No ads. No CAPTCHAs. No data leaving your machine.

# One command. Any conversion. Instantly.
npx anyconv json yaml package.json
npx anyconv ts now
npx anyconv color "#ff8800"
npx anyconv bytes 1073741824
npx anyconv number 255
npx anyconv b64 encode "hello world"

npm npm downloads npm bundle size GitHub stars License: MIT


Why anyconv?

Every developer has been here: you need to convert a Unix timestamp, figure out a byte size, or switch between JSON and YAML. So you open a browser. Search. Click past SEO spam. Dodge 14 popups. Close a "before you leave" modal. Paste your data into a sketchy website that probably sells it. Copy the result. Close 8 tabs.

There's a better way.

anyconv is a single npm package that lives in your terminal. It works offline. It respects your privacy. It's pipeable, scriptable, and composable with the rest of your toolchain. And it's 4.8 kB gzipped — smaller than a single JPEG on those ad-heavy converter sites.

Features

  • JSON ↔ YAML — convert files or piped data instantly
  • Unix timestamps — seconds, milliseconds, ISO 8601, locale, UTC — all at once
  • Base64 encode/decode — without opening a sketchy website
  • Color conversion — auto-detect hex, RGB, HSL — see all formats at once
  • Byte size converter — decimal (KB/MB/GB) and binary (KiB/MiB/GiB) side by side
  • Number base converter — decimal, hex, binary, octal — any input format
  • Stdin support — pipe data through anyconv from curl, cat, or any other command
  • Offline — zero network requests after install
  • Private — your data never leaves your machine

Install

npm install -g anyconv

Or use instantly without installing:

npx anyconv --help

Requires Node.js 18+.

Quick start

# JSON to YAML
anyconv json yaml package.json

# YAML to JSON (pipe or file)
cat config.yaml | anyconv yaml json

# What time is 1748226460?
anyconv ts 1748226460

# What color is #ff8800?
anyconv color "#ff8800"

# How big is 1 GB in bytes?
anyconv bytes 1073741824

# What is 255 in hex?
anyconv number 255

Real-world examples

Convert an API response to YAML

curl https://api.github.com/repos/amitwaks/anyconv | anyconv json yaml

Pretty-print a JSON file

anyconv yaml json config.yaml  # round-trip: YAML → formatted JSON

Decode a JWT payload (without the website)

echo "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0" | anyconv b64 decode

Figure out deployment sizes

anyconv bytes $(stat -f%z dist/bundle.js)

Quick color palette exploration

anyconv color "#3498db"
anyconv color "rgb(52, 152, 219)"

Usage reference

| Command | Description | |---|---| | anyconv json yaml [file] | Convert JSON to YAML | | anyconv yaml json [file] | Convert YAML to JSON | | anyconv ts <timestamp\|now> | Unix timestamp to all date formats | | anyconv b64 encode <string> | Base64 encode | | anyconv b64 decode <string> | Base64 decode | | anyconv color <value> | Auto-detect hex/RGB — show all formats | | anyconv color hex <hex> | Explicit hex input | | anyconv color rgb <r> <g> <b> | Explicit RGB input | | anyconv bytes <number> | Byte count to all units | | anyconv number <value> | Decimal to hex, binary, octal | | anyconv number hex <value> | Parse as hexadecimal | | anyconv number bin <value> | Parse as binary | | anyconv number oct <value> | Parse as octal | | anyconv --help | Show help | | anyconv --version | Show version |

Roadmap

  • URL encode/decode
  • Hash generators (MD5, SHA-256)
  • JWT decode and inspect
  • HTML entity encode/decode
  • String case conversion (camelCase, snake_case, kebab-case, PascalCase)
  • Cron expression parser
  • CSS unit converter (px, rem, em, %)

Why not just use a website?

| | anyconv | Converter websites | |---|---|---| | Works offline | ✅ Yes | ❌ No | | Private (data stays local) | ✅ Yes | ❌ Usually not | | Pipeable / scriptable | ✅ Yes | ❌ No | | Ad-free | ✅ Yes | ❌ 10-30 trackers per page | | CAPTCHA-free | ✅ Yes | ❌ "Are you human?" | | Bundle size | 4.8 kB | 2-5 MB of ads + tracking | | Speed | ~50ms | 2-5s (load + popups) |

Contributing

PRs welcome! The converter modules live in src/converters/ and are intentionally simple — each one is a self-contained function. Adding a new converter takes about 20 lines of code.

License

MIT — do whatever you want.