
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Bundle and transform javascript files, stylesheets, html imports and update DOM document
New in version 3: uses rollup for bundling, and still supports old-style bundling.
npm install -g bundledom
This saves modified html file, and styles are bundled into js file:
bundledom
--html bundles/index.html
--js /bundles/index.js
-x jquery.js -x moment.js -i index.js
--prepend '/js/HTMLImports.js'
public/index.html
This saves styles separately:
bundledom
--html bundles/index.html
--css /bundles/index.css
--js /bundles/index.js
--exclude jquery.js
--prepend '/js/HTMLImports.js'
public/index.html
This does not compress files, and specifies root dir
bundledom
--concatenate
--html bundles/index.html
--css /bundles/index.css
--js /bundles/index.js
--exclude jquery.js
--prepend '/js/HTMLImports.js'
--root public
public/templates/index.html
new in 1.6.0
bundledom-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 bundledom-all -h
for more command-line options.
Paths are relative to the input file path.
bundledom(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:
Anywhere createHTMLDocument works. For IE 9 to 11, works better with create-html-document-polyfill
bundledom --help
MIT, see LICENSE file.
FAQs
Bundle and transform javascript files, stylesheets, html imports and update DOM document
The npm package bundledom receives a total of 2 weekly downloads. As such, bundledom popularity was classified as not popular.
We found that bundledom 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.