Giter Club home page Giter Club logo

Comments (3)

ganeshkbhat avatar ganeshkbhat commented on May 26, 2024

Merging Issues. Seems this feature is being worked on already. I was not aware nor communicated. I though that was not nice at all.

npm/cli#5009
npm/config#76
#9

from package-json.

ganeshkbhat avatar ganeshkbhat commented on May 26, 2024

Citing npm package being pushed in as spam based on these articles I wish to push this as a reason to avoid false positives for a few percent of npm packages which were published as new packages:

While there may be a lot of spam packages, if you have duplicate package - renamed or republished due to some reason allowing redirect of a npm package to a different package name is definitely going to be a critical feature. You may want to do two this as per my view here:

  1. npm package one -> redirect -> npm package two using keyword in package.json (the feature will install npm package two instead of npm package one).
  2. npm package one -> redirect -> npm package two when opening the npm website
    • Redirect the npmjs website desciption page for npm package one to npm package two since the package.json specifies config of redirect from npm package one to npm package two
    • Alternatively put a note in npmjs website in package description page that the npm package one is deprecated in favour of npm package two and that installation of npm package one will lead to installation of npm package two). This will help you to take a look at legacy npm package one package, its description, and its legacy code. This is expected and preferable.

I am now updating the expected behaviour in the issues from:

I should be able to redirect a npmjs A package to npmjs B package from package.json config. to I should be able to redirect installation of a npmjs A package to npmjs B package from package.json config.

from package-json.

wraithgar avatar wraithgar commented on May 26, 2024

overrides are what you're looking for.

from package-json.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.