Getting rid of NPM scripts

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • git-open

    Type `git open` to open the GitHub page or website for a repository in your browser.

  • I love git open[0] but I was always a bit mystified by how a simple "npm install" command can modify what it needs to in order for "git open" to become a valid command.

    [0]https://github.com/paulirish/git-open

  • npm-lint

    A linter for npm & node package.json files with a focus on dependency security

  • A while back I wrote a opt-in tool called npl-lint[1] that would allow some CI-level enforcement of rules in package.json although I didn't go too far with it - one thing was to check the scripts section and allow whitelisted apps, or whitelisted sources for dependencies.

    It came about because I ended up having a spat with one of the NPM engineers at the time because they launched npx with the ability to run arbitrary gists[2] and this was before 2FA (FWIW you can still absolutely do this with npx).

    I wrote a proof of concept[3] that showed you could, inside a package.json add a command to install another package from a gist location, and then use that to steal credentials, bash history, etc.

    [1] https://github.com/tanepiper/npm-lint

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • steal-ur-stuff

    Steal Ur Stuff

  • [3] https://github.com/tanepiper/steal-ur-stuff

  • just

    🤖 Just a command runner

  • Make is designed to track build dependencies, not to execute programs, so I think the problem is the choice of name.

    "just" is a utility designed to execute programs: https://github.com/casey/just#just

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts