cli VS npm

Compare cli vs npm and see what are their differences.

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
cli npm
12 48
99 17,233
- -
9.2 2.1
about 10 hours ago over 3 years ago
Rust JavaScript
GNU General Public License v3.0 only Artistic License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

cli

Posts with mentions or reviews of cli. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-14.
  • Ledger's NPM account has been hacked
    8 projects | news.ycombinator.com | 14 Dec 2023
    Co-funder @ Phylum here (https://phylum.io) We have been actively scanning dependencies across npm (and PyPI, RubyGems, Crates.io, etc.) for nearly three years now; quite successfully, I might add (https://blog.phylum.io/tag/research/). We _automatically_ hit on this package when it was published, and our research team has been all over it.

    A collective of us are active in Discord (https://discord.gg/Fe6pr5eW6p), continuing to hunt attacks like these. If that's something that interests you, we'd love to have you!

    In addition to this, we've released several open source tools to help protect against supply chain attacks:

    1. https://github.com/phylum-dev/birdcage - Birdcage is a cross-platform embeddable sandbox that's been baked into our CLI (which wraps npm, pypi, etc.) to sandbox package installations

    2. https://github.com/phylum-dev/cli - Our CLI provides an extension capability so you can lock down random executables you might use during your software development (define _what_ it's allowed to do, e.g. network access, and then lock it down with Birdcage)

    We also have a variety of integrations, including Github, Gitlab, BitBucket, CircleCI, Tines, Sophos, etc.

    https://docs.phylum.io/docs/integrations_overview

    It's unfortunate that software dependency attacks continue to plague open source registries. It seems unlikely this will let up in the near future. We are continuing to work closely with the open source ecosystems to try and get these sorts of packages removed when they pop up.

  • A Study of Malicious Code in PyPI Ecosystem
    4 projects | news.ycombinator.com | 8 Sep 2023
  • Rust Malware Staged on Crates.io
    3 projects | news.ycombinator.com | 25 Aug 2023
    We're actively working on this with our sandbox (https://github.com/phylum-dev/birdcage). We've wrapped the likes of pip, yarn, and npm already and are making moves to similarly provide support for cargo.

    Currently comes as part of the Phylum CLI (https://github.com/phylum-dev/cli), so that doing something like:

        phylum npm install 
  • How Attackers Can Sneakily Slip Malware Packages Into Poetry.lock Files
    2 projects | /r/Python | 2 May 2023
    cli - uses sandbox to block packages during installation, performs pre-install checks to determine (by hitting the API) if the package performs actions congruent with malware, e.g. phylum pip install requests will use pip wrapped by the sandbox to install requests after verifying that it doesn't have malware like behavior.
  • Attackers Repurposing existing Python-based Malware for Distribution on NPM
    2 projects | /r/javascript | 19 Apr 2023
    This is bundled with our CLI tool today (which is also open source) and allows you to install packages with phylum npm install . We currently support npm, yarn and pip and are planning on rolling out further support for other ecosystems in coming months.
  • Attackers are hiding malware in minified packages distributed to NPM
    4 projects | /r/javascript | 30 Mar 2023
    We open sourced our tooling to help with this problem specifically. We have an extension framework that wraps npm for three purposes:
  • Active Malware Campaign Targeting Popular Python Packages Underway
    3 projects | /r/netsec | 11 Feb 2023
    Our CLI tool (also open source and free) will check for typosquats, dependency confusion, malicious code, vulnerabilities, etc. in your package dependencies. Works for pypi, npm, rubygems, maven, nuget and very recently golang and rust crates.
  • Ransomware being published to PyPI in ongoing campaign
    2 projects | /r/Python | 9 Dec 2022
    This is built into the Phylum CLI so you can do things like:
  • Dozens of malicious PyPI packages discovered targeting developers
    23 projects | news.ycombinator.com | 2 Nov 2022
    This is one of the projects we're working on (and open sourcing)!

    Currently allows you to specify allowed resources during the package installation in a way very similar to what you've outlined [1].

    The sandbox itself lives here [2] and can be integrated into other projects.

    1. https://github.com/phylum-dev/cli/blob/main/extensions/npm/P...

    2. https://github.com/phylum-dev/birdcage

  • How To: Open Source Policy Automation via Phylum Extensions
    1 project | dev.to | 7 Sep 2022
    We will start here with a slightly more in-depth, custom version of the existing NPM shim extension - a tool that enforces default project policy when installing NPM packages. This custom extension will do some additional custom validation before allowing the installation process to continue.

npm

Posts with mentions or reviews of npm. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-20.
  • XML is better than YAML
    17 projects | news.ycombinator.com | 20 Sep 2023
    The fact that JSON doesn't support comments is so annoying, and I always thought that Douglas Crockford's rationale for this basically made no sense ("They can be misused!" - like, so what, nearly anything can be misused. So without support for comments e.g. in package.json files I have to do even worse hacky workaround bullshit like "__some_field_comment": "this is my comment"). There is of course jsonc and JSON5 but the fact that it's not supported everywhere means 10 years later we still can't write comments in package.json (there is https://github.com/npm/npm/issues/4482 and about a million related issues).
  • Jest not recommended to be used in Node.js due to instanceOf operator issues
    9 projects | news.ycombinator.com | 30 Jun 2023
    Things like the sparkline charts on npmjs (e.g. https://www.npmjs.com/package/npm ) are interactive SVGs. I think they're pretty common for data visualizations of all kinds
  • JavaScript registry NPM vulnerable to 'manifest confusion' abuse
    3 projects | news.ycombinator.com | 27 Jun 2023
    I actually did a POC 7 years ago about this - https://github.com/tanepiper/steal-ur-stuff

    It was reported to npm at the time, but they chose to ignore it - https://github.com/npm/npm/issues/17724

  • I'm a Teapot
    4 projects | news.ycombinator.com | 26 May 2023
    Every time this pops up, I'm reminded of the day that the NPM registry started returning 418 responses.

    I remember being at a training course that day and my manager asking me what we could do to fix it because our CI was failing to pull dependencies from NPM.

    Trying to explain that NPM was returning a status code intended as an April Fools joke and which was never meant to see the light of production was quite difficult

    https://github.com/npm/npm/issues/20791

  • Dissecting Npm Malware: Five Packages And Their Evil Install Scripts
    4 projects | /r/javascript | 18 Apr 2023
    I should really get around to how I discovered this 6 years ago and still nothing done about it
  • Attackers are hiding malware in minified packages distributed to NPM
    4 projects | /r/javascript | 30 Mar 2023
    Whenever something like this comes up I usually have to tap the sign (and the original report)
  • NPM Vs PNPM
    1 project | /r/npm | 23 Mar 2023
    NPM is not "Node Package Manager". https://www.npmjs.com/package/npm
  • A not so unfortunate sharp edge in Pipenv
    8 projects | news.ycombinator.com | 20 Dec 2022
    > which can be overriden with env setting

    Support for this is not great. Lots of packages still don't support this properly. My experience matches the 2015 comment https://github.com/npm/npm/issues/775#issuecomment-71294085

    > Not sure why "symlinks" would be involved.

    If you make your node_modules a symlink, multiple packages will fail. Even if you're not interested in doing that, others are.

    > What NPM does is leaps and bounds ahead

    Unless you change your node / gyp version. It doesn't really have a concept of runtime version. You can restrict it, but not have two concurrent versions if they conflict.

  • Front-end Guide
    54 projects | dev.to | 23 Nov 2022
    [email protected] was released in May 2017 and it seems to address many of the issues that Yarn aims to solve. Do keep an eye on it!
  • Framework axios pushed a broken update, crippling thousands of websites
    6 projects | /r/programming | 7 Oct 2022
    I think it's had been supposed to do that since forever. Apart from some bug in npm 5.3. Are you sure your package-lock versions actually conform to the semver ranges in your package.json?

What are some alternatives?

When comparing cli and npm you can also consider the following projects:

secimport - eBPF Python runtime sandbox with seccomp (Blocks RCE).

pnpm - Fast, disk space efficient package manager

steal-ur-stuff - Steal Ur Stuff

corepack - Zero-runtime-dependency package acting as bridge between Node projects and their package managers

rebuilderd - Independent verification of binary packages - reproducible builds

spm

packj - Packj stops :zap: Solarwinds-, ESLint-, and PyTorch-like attacks by flagging malicious/vulnerable open-source dependencies ("weak links") in your software supply-chain

yarn - The 1.x line is frozen - features and bugfixes now happen on https://github.com/yarnpkg/berry

notes - Notes, Questions, Ideas

Bower - A package manager for the web

pypi-scan - Scan pypi for typosquatting

jspm