0.1.27 • Published 7 months ago

module-link-unlink v0.1.27

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

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

API Docs

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

7 months ago

0.1.19

7 months ago

0.1.18

7 months ago

0.1.17

7 months ago

0.1.16

7 months ago

0.1.15

7 months ago

0.1.14

7 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

8 months ago

0.1.2

8 months ago

0.1.1

8 months ago

0.1.0

8 months ago