
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
rollup-plugin-node-license
Advanced tools
When you're bundling your app, you should be including license information inside those bundles. This module assumes you are using NPM modules. If it detects a node_module was loaded at any point during bundling, it will check its package information and
When you're bundling your app, you should be including license information inside those bundles. This module assumes you are using NPM modules. If it detects a node_module was loaded at any point during bundling, it will check its package information and will confirm the license using License Checker. License comments are then appended to the generated bundle.
Load the plugin into your Rollup configuration.
let license = require('rollup-plugin-node-license');
rollup({
...
plugins: [
license({
// Format of the injected license comment(s).
// Options: "jsdoc" (default), or "table".
format: 'jsdoc'
})
]
});
With rollup-plugin-terser
, the following step is not needed. If you're using rollup-plugin-uglify
, you should apply the following rule so that the licenses are not removed:
uglify({
output: {
comments: (node, comment) => {
if (comment.type === 'comment2') {
return /^\!/i.test(comment.value);
}
}
}
});
After a build, you'll see the license comments at the top of the bundle.
FAQs
When you're bundling your app, you should be including license information inside those bundles. This module assumes you are using NPM modules. If it detects a node_module was loaded at any point during bundling, it will check its package information and
We found that rollup-plugin-node-license 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.