1.0.0 • Published 9 years ago
bindung v1.0.0
bindung
Helps you require your native Node.js addon.
bindung is a simpler and more modern alternative to
bindings.
It removes support for legacy paths, requires Node.js v4 or later, and
basically uses a simple try…catch statement as explained in the Node.js documentation.
Installation
$ npm install bindung --saveUsage
Pass the target_name, as defined in your binding.gyp, to bindung.
const addon = require('bindung')('addon')Differences to bindings
- Only tries
ReleaseandDebugbuild paths (as opposed tobindings) - Looks for
binding.gypinstead ofpackage.json(therefore it works withoutpackage.jsonbeing present) - Always appends
.node(as opposed tobindings), which means that you should not append.nodeyourself - Requires Node.js v4 or later
Changelog
This project follows Semantic Versioning 2.
- v1.0.0 (2017-01-01): Initial release
License
bindung is licensed under the ISC license.
See LICENSE for the full license.
1.0.0
9 years ago