Comments (3)
Merging Issues. Seems this feature is being worked on already. I was not aware nor communicated. I though that was not nice at all.
from package-json.
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:
- https://blog.sandworm.dev/one-in-two-new-npm-packages-is-seo-spam-right-now , and
- https://developers.slashdot.org/story/23/03/30/184239/one-in-two-new-npm-packages-is-seo-spam-right-now
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:
npm package one
-> redirect ->npm package two
using keyword inpackage.json
(the feature will installnpm package two
instead ofnpm package one
).npm package one
-> redirect ->npm package two
when opening the npm website- Redirect the npmjs website desciption page for
npm package one
tonpm package two
since the package.json specifies config of redirect fromnpm package one
tonpm package two
- Alternatively put a note in npmjs website in package description page that the
npm package one
is deprecated in favour ofnpm package two
and that installation ofnpm package one
will lead to installation ofnpm package two
). This will help you to take a look at legacynpm package one
package, itsdescription
, and itslegacy code
. This is expected and preferable.
- Redirect the npmjs website desciption page for
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.
overrides are what you're looking for.
from package-json.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from package-json.