Backup your global packages.
npm install --global backup-global
bkg b
or
backup-global backup
Backup all your global packages to ~/npm.global.txt
bkg i
or
backup-global install
Use ~/npm.global.txt to install your backup
bkg f
or
backup-global file
You can use this command to find your backup file
Use custom backup file
Default file is ~/npm.global.txt
Use these command to use custom backup file
bkg b -o <filePath>
or
backup-global backup --output <filePath>
Default file is ~/npm.global.txt
Use these command to use custom backup file
bkg i -i <filePath>
or
backup-global install --input <filePath>
Show backup file
Support comments
Add version control
Default option is backup packages with version
Use these command to backup packages without version
bkg b -n
or
backup-global backup --no-version
Default option is install packages with version
Use these command to install packages without version
bkg i -n
or
backup-global install --no-version
This project is licensed under the MIT License