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

merge-csv-on-column

v1.0.0

Published

Merge multiple CSV files on the selected column.

Downloads

3

Readme

merge-csv-on-column

A CLI utility for merging multiple CSV files on a column

Quick start

  1. From the project root, install dependencies:

    npm ci
  2. Run the script:

    node ./merge-csv-on-column.js "./source_csv/Users.csv" "./source_csv/Users Access.csv"

    Interactive mode (checkbox selection):

    node ./merge-csv-on-column.js --interactive "./source_csv/Users.csv" "./source_csv/Users Access.csv"

Run with npx (no install)

You can run the CLI without installing it globally using npx:

npx merge-csv-on-column "./source_csv/Users.csv" "./source_csv/Users Access.csv"

Interactive mode via npx:

npx merge-csv-on-column --interactive "./source_csv/Users.csv" "./source_csv/Users Access.csv"

Note: The first time you run npx, it may prompt to install the package. Use npx --yes merge-csv-on-column ... for non-interactive environments.

Options

  • -o, --output <path> — output CSV path (default: ./merged.csv)
  • --conflict <first|last> — conflict resolution when multiple files provide values for the same column (default: first)
  • --preview — print the first 10 rows of the merged output
  • --interactive — choose columns interactively with a checkbox UI (falls back to textual prompt)
  • --columns "A,B,C" — non-interactive comma-separated columns list
  • -k, --key <field> — column to merge on (default: Email). In interactive mode, you can also choose the key from detected headers.

Example: specify exact columns to keep (non-interactive)

The following example keeps only these columns in the output:

node ./merge-csv-on-column.js --columns "Email, First name, Last name, Accepted site invitation, Description, Invited on, Accepted the invitation, Account verified, Logged in, Issued at least a command" "./source_csv/Users.csv" "./source_csv/Users Access.csv"

Notes

  • The script requires at least two input CSV files and defaults to using an Email column as the merge key.
  • Paths with spaces should be quoted.

License

MIT