install-module-linked-compat 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +13 -5
  2. package/package.json +1 -7
package/README.md CHANGED
@@ -1,15 +1,23 @@
1
- ## install-module-linked-compat
1
+ # install-module-linked-compat
2
2
 
3
3
  Installs and symlinks a module into node_modules
4
4
 
5
5
  This is the broad-Node version of install-module-linked (engines >= 0.8): it re-exports the identical API and injects shims only for the built-ins the running Node lacks. On Node >= 18 it is a pure pass-through to install-module-linked.
6
6
 
7
- ### Example 1
7
+ ```sh
8
+ npm install install-module-linked-compat
9
+ ```
10
+
11
+ For older CommonJS applications:
8
12
 
9
- ```typescript
10
- import installModule from 'install-module-linked-compat';
13
+ ```js
14
+ var path = require('path');
15
+ var installModule = require('install-module-linked-compat');
11
16
 
12
- const res = await installModule('my-module@1.2.3', /* path to node_modules */ );
17
+ installModule('is-number@7.0.0', path.join(__dirname, 'node_modules'), function (err, installedAt) {
18
+ if (err) throw err;
19
+ console.log(installedAt);
20
+ });
13
21
  ```
14
22
 
15
23
  ### Documentation
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "install-module-linked-compat",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Installs and symlinks a module into node_modules",
5
5
  "keywords": [
6
6
  "npm",
@@ -72,11 +72,5 @@
72
72
  },
73
73
  "engines": {
74
74
  "node": ">=0.8"
75
- },
76
- "allowScripts": {
77
- "node-filename-to-dist-paths": true,
78
- "node-semvers": true,
79
- "node-version-use": true,
80
- "thread-sleep-compat": true
81
75
  }
82
76
  }