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

@mini-tool-lab/json2csv

v1.0.1

Published

💼 **Pro version available** Adds support for custom CSV delimiters and extended options. 👉 https://minitoollab.gumroad.com/l/json2csvpro?_gl=1*1cio27s*_ga*MTE2NzE5NTc0MS4xNzY1ODMzOTgy*_ga_6LJN6D94N6*czE3NjYxNzMyNTgkbzQkZzAkdDE3NjYxNzMyNTgkajYwJGwwJG

Readme

💼 Pro version available
Adds support for custom CSV delimiters and extended options.
👉 https://minitoollab.gumroad.com/l/json2csvpro?_gl=11cio27s_gaMTE2NzE5NTc0MS4xNzY1ODMzOTgy_ga_6LJN6D94N6*czE3NjYxNzMyNTgkbzQkZzAkdDE3NjYxNzMyNTgkajYwJGwwJGgw

json2csv

A predictable CLI to flatten JSON into CSV. Built for API responses, logs, and anything else that refuses to behave.

Why this exists

If you’ve ever:

  • Exported JSON from an API and needed it in Excel
  • Shared data with someone who does not speak JSON
  • Debugged deeply nested payloads
  • Used a random online JSON-to-CSV site you didn’t trust

This tool is for you.

json2csv turns messy, nested JSON into a clean, scriptable CSV you can use anywhere.

Install

npm

npm install -g json2csv

Note: If you publish under a different npm package name (recommended for uniqueness), update the install command accordingly.

Usage

From a file:

json2csv input.json > output.csv

From stdin:

cat input.json | json2csv > output.csv

From an API:

curl -s https://api.example.com/data | json2csv > data.csv

Flattening rules

  • Nested objects become dot-notation columns
    user.profile.name

  • Arrays of primitives are joined with |
    tags → "a|b|c"

  • Arrays of objects become indexed columns
    items[0].id, items[1].id

  • Empty or missing values are preserved as empty cells

  • Column order is stable and alphabetical

Example

Input

{
  "id": 1,
  "user": { "profile": { "name": "Tim" } },
  "tags": ["x", "y"],
  "items": [
    { "sku": "A1", "qty": 2 },
    { "sku": "B2", "qty": 1 }
  ]
}

Output

id,items[0].qty,items[0].sku,items[1].qty,items[1].sku,tags,user.profile.name
1,2,A1,1,B2,x|y,Tim

Design goals

  • Predictable output
  • Safe for scripts and CI
  • No config files
  • No external services
  • No telemetry

License

MIT