Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@aminya/node-gyp-build
Advanced tools
Build tool and bindings loader for node-gyp that supports prebuilds
Fork created because of https://github.com/prebuild/node-gyp-build/pull/55
Build tool and bindings loader for
node-gyp
that supports prebuilds.
npm install node-gyp-build
Use together with prebuildify
to easily support prebuilds for your native modules.
Note. Prebuild names have changed in
prebuildify@3
andnode-gyp-build@4
. Please see the documentation below.
node-gyp-build
works similar to node-gyp build
except that it will check if a build or prebuild is present before rebuilding your project.
It's main intended use is as an npm install script and bindings loader for native modules that bundle prebuilds using prebuildify
.
First add node-gyp-build
as an install script to your native project
{
...
"scripts": {
"install": "node-gyp-build"
}
}
Then in your index.js
, instead of using the bindings
module use node-gyp-build
to load your binding.
var binding = require('node-gyp-build')(__dirname)
If you do these two things and bundle prebuilds with prebuildify
your native module will work for most platforms
without having to compile on install time AND will work in both node and electron without the need to recompile between usage.
Users can override node-gyp-build
and force compiling by doing npm install --build-from-source
.
Prebuilds will be attempted loaded from MODULE_PATH/prebuilds/...
and then next EXEC_PATH/prebuilds/...
(the latter allowing use with zeit/pkg
)
If so desired you can bundle more specific flavors, for example musl
builds to support Alpine, or targeting a numbered ARM architecture version.
These prebuilds can be bundled in addition to generic prebuilds; node-gyp-build
will try to find the most specific flavor first. Prebuild filenames are composed of tags. The runtime tag takes precedence, as does an abi
tag over napi
. For more details on tags, please see prebuildify
.
Values for the libc
and armv
tags are auto-detected but can be overridden through the LIBC
and ARM_VERSION
environment variables, respectively.
MIT
FAQs
Build tool and bindings loader for node-gyp that supports prebuilds
The npm package @aminya/node-gyp-build receives a total of 9,201 weekly downloads. As such, @aminya/node-gyp-build popularity was classified as popular.
We found that @aminya/node-gyp-build demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.