Mascara: Next Generation JavaScript compiler

Try it Download Buy About Documentation Blog Contact
Mascara described by others:

John Resig: Writing ECMAScript 4, Today

A very cool new utility has just been released...
by John Resig, creator of JQuery.

Ajaxian: Mascara: Putting lipstick on JavaScript?

InfoWorld: JavaScript creator ponders past, future

An interview with Brendan Eich, the creator of JavaScript. Mascara is mentioned on the last page of the interview.

What is Mascara?

Mascara is a developer tool that enhances JavaScript with powerful language features like classes, type-verification, namespaces and more.

Mascara compiles this extended JavaScript into baseline JavaScript "object-code" which runs in any browser. This enables developers to use the JavaScript of the future, today.

The language extensions are based on the ECMAScript Harmony specification (and previous drafts like the ECMAScript 4 draft). ECMAScript Harmony is the next generation of JavaScript, and is being developed by ECMA International with participation by Mozilla, Apple, Adobe, Microsoft and others.)

Benefits

Limitations

Mascara currently does not have a fancy installer - you have to download it as a zip-file, and install Python 2.5 seperately.

ECMAScript Harmony is not yet a finished standard, and some of the features implemented in Mascara may be changed in the final spec. This is the risk of a life on the cutting edge!

Who will benefit from Masacara?

Mascara will be valuable for:

How is it used?

Mascara can be connected with any text editor and invoked to compile the source ES4 files to output object code, which is then included on web pages.

Alternatively, Mascara can be set up on a web server to compile code on the fly, when a page is requested. This approach yields a quick turnaround during development.

Next steps

More information about the features and use of Mascara in the online documentation..

Download the latest Mascara release and read Getting started

Buy developer licenses for professional use of Mascara.