ezito-bindings
v1.4.1
Published
binding , disable require ssr module in client , use in next.js or other
Downloads
186
Maintainers
Readme
Load your library much easier
Installation
npm i ezito-bindings
Example
For example, if our node version is 18.20.4 (or any version) and os is win x64
require("ezito-bindings")("addon.node");
require("ezito-bindings")("/bindings/{PLATFORM}-{VERSION}/addon.node");
// (~root)/bindings/win32-18.20.4/addon.node
require("ezito-bindings")("/bindings/{PLATFORM}-{VER_MAJOR}/addon.node");
// (~root)/bindings/win32-18/addon.node
require("ezito-bindings")("/bindings/{PLATFORM}-{ARCH}-{VER_MAJOR}/addon.node");
// (~root)/bindings/win32-x64-18/addon.node
// For example, if our node version is 18.20.4 (or any version) and os is win x86 or ia32
require("ezito-bindings")("/bindings/{PLATFORM}-{ARCH}-{VER_MAJOR}/addon.node");
// (~root)/bindings/win32-ia32-18/addon.node
// For example, if our node version is 18.20.4 (or any version) and os is win x86 or ia32
require("ezito-bindings")("/node_bins/{PLATFORM}/{ARCH}-{VER_MAJOR}-{VER_MINOR}/addon.node");
// (~root)/node_bins/win32/ia32-18-20/addon.node
require("ezito-bindings")("/bindings/{PLATFORM}-{ARCH}-{VER_MAJOR}.node");
// (~root)/bindings/win32-x64-18.node