install-module-linked-compat
v0.2.3
Published
Installs and symlinks a module into node_modules
Downloads
175,480
Maintainers
Readme
install-module-linked-compat
Installs and symlinks a module into node_modules
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.
npm install install-module-linked-compatFor older CommonJS applications:
var path = require('path');
var installModule = require('install-module-linked-compat');
installModule('[email protected]', path.join(__dirname, 'node_modules'), function (err, installedAt) {
if (err) throw err;
console.log(installedAt);
});