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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@hexemeister/filediff

v0.0.5

Published

a tool to export different rows in text files

Downloads

4

Readme

Status GitHub Issues GitHub Pull Requests License


📝 Table of Contents

🧐 About

At first, this project is just a javascript study.

But it has come from a true necessity: to compare 2 files and export what differs between them.

🏁 Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Node.js only. If you don't have it installed, check at its webpage to download it first.

Installing

Having Node.js installed, just install the package globally.

npm i -g @hexemeister/filediff

And wait a bit. When npm stops grumbling you're ready.

filediff -v

This will output the tool version.

Note that for one time run you can just use npx.

npx @hexemeister/filediff file1.txt file2.txt

🎈 Usage

Basic usage is:

filediff file1 file2

This will compare file1 with file2 and export the difference between these two to filediff.txt. Mind that the tool has a default command called export. Since it's the default command, you can omit as above example.

filediff export file1 file2

This will do the exactly the same as the first example. You can skip export command with no problem.

Note that order matters here. Actually, the command checks what file1 has and file2 doesn't. You can swap both filenames just adding a -i option instead of rewriting the command switching both filenames.

filediff -i file1 file2

The command above is the same as if you had written filediff file2 file1. Another thing to notice is that the default result filename is filediff.txt. You can specify a custom result filename by adding -t .

filediff file1 file2 -t result.txt

This will have you a result.txt at the end of the comparison.

For more information, check its help:

filediff -h

⛏️ Built Using

✍️ Authors

See also the list of contributors who participated in this project.

🎉 Acknowledgements

  • Hat tip to anyone whose code was used
  • Inspiration
  • References