
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
@webmodule/bundle
Advanced tools
Bundle and transform javascript files, stylesheets, html imports and update DOM document
npm install -g @webmodule/bundle
This saves modified html file, and styles are bundled into js file:
webmodule-bundle
--html bundles/index.html
--js /bundles/index.js
-x jquery.js -x moment.js -i index.js
--prepend '/js/custom-elements.js'
public/index.html
This saves styles separately:
webmodule-bundle
--html bundles/index.html
--css /bundles/index.css
--js /bundles/index.js
--exclude jquery.js
--prepend '/js/custom-elements.js'
public/index.html
This does not compress files, and specifies root dir
webmodule-bundle
--concatenate
--html bundles/index.html
--css /bundles/index.css
--js /bundles/index.js
--exclude jquery.js
--prepend '/js/custom-elements.js'
--root public
public/templates/index.html
A tool to bundle a bunch of files:
webmodule-bundle-all
--filter "**/excluded-*.*"
--common common.html
--suffix 1.0.0
"templates/*.html"
it bundles common files then processes all files matching pattern and put everything with suffixes in a bundles/ directory.
See webmodule-bundle-all -h for more command-line options.
Paths are relative to the input file path.
webmoduleBundle(path, opts, cb)
where path is the path of the html file to process,
and opts has these properties:
Strings are matched simply by searching a substring.
Tags without src or href attributes can be excluded or ignored by passing a dot ".", otherwise they are bundled.
Omitting js, css options skips the insertion of the corresponding tag in the html document.
If cb is omitted, returns a promise.
Returns an object with following properties:
webmodule-bundle --help
MIT, see LICENSE file.
FAQs
Bundle and transform javascript files, stylesheets, html imports and update DOM document
The npm package @webmodule/bundle receives a total of 5 weekly downloads. As such, @webmodule/bundle popularity was classified as not popular.
We found that @webmodule/bundle demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.