Socket
Book a DemoInstallSign in
Socket

jscat

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jscat

1.0.2
bundlerRubygems
Version published
Maintainers
1
Created
Source

= jscat

Grabs all the javascript files in a directory and smooshes them into a single file for caching & transfer. Optional YUI compression, file order prioritisation and ignore list (so you don't recursively add the output to itself)

Do this:

javascript = JsCat.new({ :js_dir => 'scripts', # read javascript files from this directory :compress => 'true', # uses/requires yui/compressor :prioritize => ['framework.js'], # puts framework.js at the top of the file :ignore => ["script_c.js"], # files to ignore :output => "output/javascript.js" # write the compressed javsascript here })

Get this:

var Framework={};function script_a(){alert("I am script a")}function script_b(){alert("I am script b")};

== Copyright

Copyright (c) 2011 Daniel Sim

FAQs

Package last updated on 28 Oct 2011

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.