0.1.27 • Published 7 months ago
module-link-unlink v0.1.27
module-link-unlink
Link and unlink a module with saving and restoring the previous install
import { linkModule, unlinkModule } from 'module-link-unlink';
// If '/path/to/node_modules/module' exists, it is moved to '/path/to/node_modules/module.abcde1234' and regardless '/path/to/module' -> '/path/to/node_modules/module'. All binaries are also linked in '/path/to/node_modules/.bin'
await link('/path/to/module', '/path/to/node_modules');
// if '/path/to/node_modules/module.abcde1234' exists, it is restored to '/path/to/node_modules/module' otherwise it will be removed including all accompanying binaries
await unlink('/path/to/module', '/path/to/node_modules');
Documentation
0.1.27
7 months ago
0.1.26
7 months ago
0.1.25
7 months ago
0.1.24
7 months ago
0.1.23
7 months ago
0.1.22
7 months ago
0.1.21
8 months ago
0.1.19
8 months ago
0.1.18
8 months ago
0.1.17
8 months ago
0.1.16
8 months ago
0.1.15
8 months ago
0.1.14
8 months ago
0.1.12
8 months ago
0.1.11
8 months ago
0.1.10
8 months ago
0.1.9
8 months ago
0.1.8
8 months ago
0.1.7
8 months ago
0.1.6
8 months ago
0.1.5
8 months ago
0.1.4
8 months ago
0.1.3
8 months ago
0.1.2
8 months ago
0.1.1
8 months ago
0.1.0
8 months ago