Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
module-replacements
Advanced tools
This package provides a set of manifests which each define a mapping of JS modules to their suggested replacements.
As part of the community e18e effort, this project provides a collection of module replacements (i.e. possible alternative packages).
We provide two things:
You can find a list of replacements in the modules readme.
Some tools consume the lists of modules in this repository:
Name | Description |
---|---|
eslint-plugin-depend | ESLint plugin to detect possible replacements |
The manifests can be used via the module-replacements
npm package.
We provide three manifests:
You can install this package via npm:
npm i -S module-replacements
You can then import the manifest of your choice:
import {nativeReplacements} from 'module-replacements';
The manifests are also available directly in the manifests/
directory
of the package (e.g. node_modules/module-replacements/manifests/native.json
).
nativeReplacements
, native.json
)These are modules which can now be replaced by native functionality.
For example, pseudo-polyfills which provide functionality of widely available platform features can be replaced by their platform equivalents.
Similarly, features which did not exist at the time but have now existed in the platform for many years, so no longer need a dependency.
microUtilsReplacements
, micro-utilities.json
)This is a more opinionated list of modules considered to be 'micro utilities' - very small utilities which could possibly be replaced with native equivalents or removed entirely.
preferredReplacements
, preferred.json
)This is a very opinionated list of modules with preferred replacements. Often these replacements are much lighter or more modern than the modules they are replacing.
Sometimes these may also be actively maintained forks of older, unmaintained source packages.
If you would like to add a replacement mapping to one of the manifests, please open an issue where this can be discussed.
Keep in mind, very newly available native features are unlikely to join the list since they are not widely available yet.
FAQs
This package provides a set of manifests which each define a mapping of JS modules to their suggested replacements.
The npm package module-replacements receives a total of 43,256 weekly downloads. As such, module-replacements popularity was classified as popular.
We found that module-replacements demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.