
Security News
CISA Extends MITRE Contract as Crisis Accelerates Alternative CVE Coordination Efforts
CISA extended MITRE’s CVE contract by 11 months, avoiding a shutdown but leaving long-term governance and coordination issues unresolved.
native-ext-loader
Advanced tools
Module for loading native files in Node and Electron applications. The project is inspired by the node-addon-loader. It works in the similar way but allows to build path in the runtime.
Add the package to the package.json
file:
$ yarn add --dev native-ext-loader
Update webpack.config.js
file's rules:
module: {
rules: [
test: /\.node$/,
loader: 'native-ext-loader'
]
}
It is possible to adjust options:
module: {
rules: [
test: /\.node$/,
loader: 'native-ext-loader',
options: {
name: '[hex].[ext]',
rewritePath: path.resolve(__dirname, 'dist')
}
]
}
name
This option allows to change the file name in the output directory. You can use all placeholders defined in the loader-utils package.
rewritePath
This options allows to set an absolute path. Note that it needs to remain undefined
if you are building a package with embedded files.
1.1.0
FAQs
Loader for Node native extensions
The npm package native-ext-loader receives a total of 1,932 weekly downloads. As such, native-ext-loader popularity was classified as popular.
We found that native-ext-loader demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Security News
CISA extended MITRE’s CVE contract by 11 months, avoiding a shutdown but leaving long-term governance and coordination issues unresolved.
Product
Socket's Rubygems ecosystem support is moving from beta to GA, featuring enhanced security scanning to detect supply chain threats beyond traditional CVEs in your Ruby dependencies.
Research
The Socket Research Team investigates a malicious npm package that appears to be an Advcash integration but triggers a reverse shell during payment success, targeting servers handling transactions.