Skip to content

LiFu-ChrisLee/backup-global

Repository files navigation

backup-global

npm npm npm

Backup your global packages.

Getting Started

npm install --global backup-global

Usage

backup

bkg b

or

backup-global backup

Backup all your global packages to ~/npm.global.txt

install

bkg i

or

backup-global install

Use ~/npm.global.txt to install your backup

file

bkg f

or

backup-global file

You can use this command to find your backup file

Change Logs

1.4.0

Use custom backup file

backup

Default file is ~/npm.global.txt

Use these command to use custom backup file

bkg b -o <filePath>

or

backup-global backup --output <filePath>

install

Default file is ~/npm.global.txt

Use these command to use custom backup file

bkg i -i <filePath>

or

backup-global install --input <filePath>

1.3.0

Show backup file

1.2.0

Support comments

1.1.0

Add version control

backup

Default option is backup packages with version

Use these command to backup packages without version

bkg b -n

or

backup-global backup --no-version

install

Default option is install packages with version

Use these command to install packages without version

bkg i -n

or

backup-global install --no-version

License

This project is licensed under the MIT License