$ cnpm install loady
Dynamic loader for node.js. Similar to node-bindings.
Scripts:
const addon = require('loady')('addon.node', __dirname);
Modules:
import loady from 'loady';
const addon = loady('addon.node', import.meta.url);
If you contribute code to this project, you are implicitly allowing your code
to be distributed under the MIT license. You are also implicitly verifying that
all code is your original work. </legalese>
See LICENSE for more info.
Copyright 2013 - present © cnpmjs.org | Home |