nmp

Give love to different runtime versions of native modules

  • nmp

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
nmp
301.0.38 years ago8 years agoMinified + gzip package size for nmp in KB

Readme

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 running to second last position. ```javascript 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