https://github.com/midwayjs/mininm
Minimal node_modules like modclean
https://github.com/midwayjs/mininm
Last synced: over 1 year ago
JSON representation
Minimal node_modules like modclean
- Host: GitHub
- URL: https://github.com/midwayjs/mininm
- Owner: midwayjs
- License: mit
- Created: 2021-01-15T08:36:23.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-12-28T16:04:20.000Z (over 4 years ago)
- Last Synced: 2024-04-24T19:31:59.147Z (about 2 years ago)
- Language: TypeScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 6
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
mininm
移除 node_modules 中数以万计的无用文件
## Use In Command
```shell
$ npm i @midwayjs/mininm -g
$ mininm
```
## Use In Code
```shell
$ npm i @midwayjs/mininm -S
```
```TS
import { removeUselessFiles, removeUselessDirs } from '@midwayjs/mininm';
await removeUselessFiles(baseDir);
await removeUselessDirs(baseDir);
```