save-ssd-cli

0.0.1-rc2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i save-ssd-cli

Weekly Downloads

2

Version

0.0.1-rc2

License

MIT

Last publish

Collaborators

  • rwu823