
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
cola-script
Advanced tools
ColaScript translator / parser / mangler / compressor / beautifier toolkit
ColaScript is the language that compiles into JavaScript. This language is similar to Dart, CoffeeScript, Python, Go and PHP, with some original ideas. Compiler based on UglifyJS2. You can try ColaScript here (stable) or here (dev). Learn more about ColaScript.
Firstly, make sure you have installed the latest version of node.js (You may need to restart your computer after this step).
From NPM for use as a command line app:
$ npm install cola-script -g
From NPM for programmatic use:
$ npm install cola-script
From Bower for using in browser:
$ bower install cola-script
From Git:
$ git clone git://github.com/TrigenSoftware/ColaScript.git
$ cd ColaScript
$ npm link .
Use it same as in UglifyJS2, except:
-j, --js, --javascript Work with JavaScript (by default Cola will
expect ColaScript). [boolean]
-n, --node Enable compilation for node. [boolean]
-P, --packages Path to packages.json (packages.json by
default). [string]
-i, --ignore-main-wrapping Ignore `main` wrapping. [boolean]
--browser-cola Build itself (Cola) for running Cola in browser.
[boolean]
Simple example of usage:
$ cola main.cola -o main.min.js -m -c
During developing is more comfortable to compile the code directly in your browser, for that add browser-cola.js
to your.html
code:
<script src="path/to/browser-cola.js"></script>
Now you can run your Cola-Code:
<script type="text/colascript" src="path/to/your.cola"></script>
If your.cola
depends on other scripts in your.html
, it's better to notice browser-cola
about it:
<script type="text/colascript" src="angular.min.js"></script>
<script type="text/colascript" src="path/to/your.cola"></script>
FAQs
ColaScript translator / parser / mangler / compressor / beautifier toolkit
The npm package cola-script receives a total of 40 weekly downloads. As such, cola-script popularity was classified as not popular.
We found that cola-script 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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.