Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bundle-html-scripts

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bundle-html-scripts

Bundle and compress all the scripts in any remote or local html file.

  • 1.3.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

bundle-html-scripts

Bundle and compress all scripts from any local or remote server's html file

As command line argument

node /path/to/bundle-html-scripts.js http://example.com/file.html

In code

require('bundle-html-scripts')('http://example.com/file.html')

Both commands above will create a file ./bundle.js on success.
There should be no problem parsing files with scripts inside comments, multiline included.
On failure keep trying... after 10+ attempts open an issue including the link.

Usage

Two parameters may be passed to the script, skip and verbose, an array of scripts to skip, and a boolean.
For example to skip compiling bundle.js and bar.js you can use
node ./bundle-html-scripts.js http://example.com/file.html "['bundle.js','bar.js']"
Or to print verbose information node ./bundle-html-scripts.js http://example.com/file.html "[]" true

Instalation

npm install bundle-html-scripts || npm install -g bundle-html-scripts
|| git clone https://github.com/ileathan/bundle-html-scripts && cd bundle-html-scripts && npm install

Dependencies

1.) request

2.) uglify-es

Keywords

FAQs

Package last updated on 05 Aug 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc