noop-package

1.0.0 • Public • Published

noop-package

Noop NPM Package

Description

This package is useful when you want to remove a transitive dependency from npm/yarn.

For example. Module A depends sets Module B as a dependency but doens't use it and you want to remove it from your node_modules. You can use selective dependency resolution to override a module in package.json

{
  "dependencies": {
    "moduleA": "1.0.0",
    "moduleB": "npm:noop-package@1.0.0"
  },
  "resolution": {
    "moduleB": "npm:noop-package@1.0.0"
  }
}

Warnings

If you override a package using selective dependency resolution, the original package will be replaced in node_modules and may cause undefined behaviour.

License

This project is licensed under the MIT License - see the LICENSE file for details

Readme

Keywords

Package Sidebar

Install

npm i noop-package

Weekly Downloads

3,196

Version

1.0.0

License

MIT

Unpacked Size

2.32 kB

Total Files

5

Last publish

Collaborators

  • berickson1