
Security News
Nx npm Packages Compromised in Supply Chain Attack Weaponizing AI CLI Tools
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
== jsc
jsc, JavaScript Compiler by Davide Saurino http://github.com/sub/jsc
Ruby API to Google Closure Compiler Web service.
== Features
With jsc you can compile your JavaScript code throught {Google Closure Compiler REST service}[http://code.google.com/closure/compiler/].
The package comes with a jsc command which accepts several options, run:
jsc --help
for help.
More in details:
Check {Google API Reference}[http://code.google.com/intl/it-IT/closure/compiler/docs/api-ref.html] for more info about accepted parameters.
== Synopsis
Get compiled code, if no errors are found:
jsc js/compiled_code.js
Compile a file, check for errors:
jsc js/errors.js -e
Compile a file, check for warnings:
jsc js/warnings.js -w
Compile a file and get compression stats:
jsc js/compiled_code.js -s
Compile a piece of code, check for errors:
jsc -e -c "function("
Compile a file for both errors and warnings:
jsc js/compiled_code.js -a
== Install
If you have gemcutter in your gem sources, run:
[sudo] gem install jsc
== Emacs+flymake+jsc
For GNU Emacs users, jsc provides a {flymake}[http://www.emacswiki.org/emacs/FlyMake] compatible output. So you can use jsc+flymake to have a syntax check tool running in the background while editing your javascript files. Look at the {wiki page}[http://wiki.github.com/sub/jsc/flymake] for more info.
== Emacs snippet
Do you want to compile your code right from Emacs?
Copy
plugins/jsc.el
to your emacs load-path and restart Emacs.
Now, select the code to compile and run:
== Copyright
Copyright (c) 2010 Davide Saurino. See LICENSE for details.
FAQs
Unknown package
We found that jsc 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
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.