0.0.1-rc2 β€’ Published 8 years ago

save-ssd-cli v0.0.1-rc2

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

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-cli

into project root:

$ cd your_module_project

run 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