save-ssd-cli
v0.0.1-rc2
Published
Share the `node_modules` release your Hard Disk spaces.
Downloads
4
Readme
save-ssd-cli
Share the node_modules release your Hard Disk spaces.
Story
My work enviroment is Macbook, as everybody knows the SSD space is very expensive💰💰💰.
This is my folder structure for each project it depends modules by itself but many duplicate.
dev/
├── module_name1/
| └── node_modules/ (many duplicate here)
└── module_name2/
└── node_modules/ (many duplicate here)Resolve idea: this is fine because require in js file will finds out parent directory till get closest node_modules, but it still had a problem, lost the node_modules/.bin execable files in each project, npm run command will get fail.
save-ssd is created to resolve this problem.
dev/
├── package.json
├── node_modules/ (common modules)
├── module_name1/
└── module_name2/Install
$ npm install -g save-ssd-cliinto project root:
$ cd your_module_projectrun save-ssd will create symbol link from closest parent node_module/.bin/* in to ./node_moduls/.bin/*
$ save-ssd
⠋ Starting
[save-ssd] ✅ Congratulation you're saving your SSD ❤️ 117.68 Mb