Remove unnecessary dependencies to speed up npm install
π automatically delete DefinitelyTyped Dependencies.
π Just type pipet
in the command line. Easy.
Import Syntax | Support Version |
---|---|
const example = import('example') |
2.1.0 |
const example = require('example') |
2.1.0 |
const example = require.resolve('example') |
2.1.0 |
import example from 'example' |
2.1.0 |
const example = import('example/example') |
2.3.0 |
const example = require('example/example') |
2.3.0 |
const example = require.resolve('example/example') |
2.3.0 |
import example from 'example/example' |
2.3.0 |
npm install -g pipet-cli
pipet
If you have installed locally,
npx pipet
--ext
Specifies the extension of the target file. By doing this, files such as images can be removed, which speeds up the process.γHowever, do this and ensure that necessary dependencies are not removed.
Example:
npx pipet --ext .js,.ts
--uninstaller
Specifies the uninstaller to be used internally. npm
or yarn
default: npm
Example:
npx pipet --uninstaller npm
--ignore-file-path
Specifies the path of the dependency configuration file to ignore. Dependencies to be ignored will not be deleted, even if they are targeted for deletion. default: ./.pipetignore
Example:
npx pipet --ignore-file-path ./.pipetignore
Default Ignore File Name: .pipetignore
Write with line breaks.
Example:
exampleDependencies01
exampleDependencies02