nmp

1.0.3 • Public • Published

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.

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    8,065
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    8,065
  • 1.0.2
    0
  • 1.0.1
    1

Package Sidebar

Install

npm i nmp

Weekly Downloads

8,066

Version

1.0.3

License

MIT

Last publish

Collaborators

  • s-a