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