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

@justjcurtis/difi

v1.1.1

Published

difi is a simple data manipulation, processing & cleaning utility for your command line

Downloads

3

Readme

difi - V1.1.1

A small cli for manipulating, processing & cleaning data.

Prerequisites

All you need to use difi is a command line and node :)

Installing

Simply open up a terminal and type

npm i @justjcurtis/difi -g

Usage

After installing type:

difi -h

to see general help.

For more detailed usage info type:

difi -h [command]

Available commands

process|p [options] [filepath] : processes file supplied with processing flags supplied.

  • Remove blank entries [-b] - removes blank entries.
  • Remove duplicates [-d] - remove duplicates.
  • Ignore case [-i] - ignores case when comparing entries to keywords.
  • lowercase [-l] - make file lower case.
  • Input delimiter [-id {delimiter}] - specifies input delimiter (defaults to \n).
  • Output delimiter [-od {delimiter}] - specifies output delimiter (defaults to input delimiter).
  • Sorting [-s] - sorts output.
  • Reversing [-rv] - reverses output (done after sort).
  • Replace file [-rf] - replaces original file with output.
  • Remove keyword [-rk {keyword}] - removes entries with specified keyword.
  • Remove before keyword [-rb {keyword}] - removes entry before keyword.
  • Remove after keyword [-ra {keyword}] - removes entry after keyword.
  • Print [-p] - prevents saving and instead, prints output to console.
  • Output [-o {path}] - specifies output file (defaults to inputfile_difi).

compare|c [options] [filepathA] [filepathB] : compares two files and displays missing entries in second file

  • Flip [-f] - flips comparison tp show keys missing in the first file.
  • Ignore case [-i] - ignores case when comparing entries.
  • Input delimiter [-id {delimiter}] - specifies input delimiter (defaults to \n).
  • Output delimiter [-od {delimiter}] - specifies output delimiter (defaults to input delimiter).
  • Sorting [-s] - sorts output.
  • Reversing [-rv] - reverses output (done after sort).
  • Print [-p] - prevents saving and instead, prints output to console.
  • Output [-o] - specifies output file (defaults to inputfile_difiCompare.

search|s [options] : search a file or directory structure using a list of keys.

  • Ignore_case [-i] - ignores case when searching for keys.
  • Recursive [-r] - search recursively into subdirectories.
  • Keys [-k] - allows keys to be entered directly into the terminal as the second argument as comma seperated values.
  • Input_delimiter [-id] - specifies input delimiter (defaults to \n).
  • Output_delimiter [-od] - specifies output delimiter (defaults to input delimiter).
  • Occurances [-oc] - list occurances of each key along with the minimum occurance for all keys.
  • Detail [-d] - show filepath & line number for each match.
  • Blacklist [-bl] - blacklist filetypes to be excluded from the search in the form of comma seperated values.
  • Whitelist [-wl] - whitelist filetypes to be included in the search in the form of comma seperated values (overrides blacklist).
  • Sort [-s] - sort output by key.
  • Sort_occurance [-so] - sort output by occurance, enables -oc & overrides -s.
  • Reverse [-rv] - reverses output (done after sort).
  • Print [-p] - prevents saving and instead, prints output to console.
  • Output [-o] - specifies output file for search results (defaults toparentDir_of_startPath/startPathFileName_difiSearch.txt).

Roadmap

  • Extend functionality by accepting regex patterns for searching, keywords etc.
  • much more...

Built With

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

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

License

This project is licensed under the MIT License - see the Licence.md file for details

Acknowlegements