
Product
Introducing Pull Request Stories to Help Security Teams Track Supply Chain Risks
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
rollup-plugin-strip-banner
Advanced tools
Rollup plugin that can be used to remove banner on modules
A plugin for rollup that can be used to remove banners (such as license headers) from modules files before generating the final bundle.
npm install --save-dev rollup-plugin-strip-banner
Add the plugin in your rollup configuration file:
const stripBanner = require('rollup-plugin-strip-banner');
module.exports = {
entry: 'src/index.js',
dest: 'dist/index.js',
plugins: [
stripBanner()
]
}
As other rollup plugins, include
and exclude
can be configured:
const stripBanner = require('rollup-plugin-strip-banner');
module.exports = {
entry: 'src/index.js',
dest: 'dist/index.js',
plugins: [
stripBanner({
include: '**/*.js',
exclude: 'node_modules/**/*'
})
]
}
magic-string
).rollup-pluginutils
).MIT License (MIT)
If you find a bug or think about enhancement, feel free to contribute and submit an issue or a pull request.
FAQs
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.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.