0.1.27 • Published 6 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
6 months ago
0.1.26
6 months ago
0.1.25
6 months ago
0.1.24
6 months ago
0.1.23
6 months ago
0.1.22
6 months ago
0.1.21
6 months ago
0.1.19
6 months ago
0.1.18
6 months ago
0.1.17
6 months ago
0.1.16
6 months ago
0.1.15
6 months ago
0.1.14
6 months ago
0.1.12
7 months ago
0.1.11
7 months ago
0.1.10
7 months ago
0.1.9
7 months ago
0.1.8
7 months ago
0.1.7
7 months ago
0.1.6
7 months ago
0.1.5
7 months ago
0.1.4
7 months ago
0.1.3
7 months ago
0.1.2
7 months ago
0.1.1
7 months ago
0.1.0
7 months ago