Skip to content
/ nmp Public

Support different runtime versions of native modules

License

Notifications You must be signed in to change notification settings

s-a/nmp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Native Module Path (nmp)

npm version Build Status Dependency Status devDependency Status

Give love to the path of native Node.js modules and support different runtime versions.

API

NMP.join

Acts like path.join but injects a version string of current running v8 engine to second last position.

var NMP = require("nmp");
var nmp = new NMP();

var dir = nmp.join(__dirname, "bin", "my-native-module-name.node");
console.log(dir)

// --> c:\git\nmp\test\bin\win32-ia32-v8-3.28\my-native-module-name.node

About

Support different runtime versions of native modules

Resources

License

Stars

Watchers

Forks

Packages

No packages published