jazzle

Dazzlingly Fast ECMAScript transpiler with zero dependencies

MIT 19 个版本
安装
npm install jazzle
yarn add jazzle
pnpm add jazzle
bun add jazzle
README

Jazzle -- Dazzlingly Fast ECMAScript Transpiler

Intro

Jazzle is a dazzingly fast, new transpiler for ECMAScript, making new features like destructuring (complex) assignments, classes, lexical variables, arrow functions, and template strings available in environments where they are not yet supported.

It uses a number of novel techniques to efficiently implement features not (efficiently, if at all) implemented in other transpilers, most notably temporal dead zones for lexical variables and super-bound this references.

Oh, and it is still about 2x as fast as babel on early benchmarks.

Give it a try and you will be surprised!

Quickstart:

installation:

npm install -g jazzle # you might need to be root (sudo) to use the -g flag

usage:

var src = 'let [myCoolSource] = ((a=myCoolSource) => [a])();',
    jazzle = require('jazzle');

var result = jazzle.transform(src, {sourceType: 'module'});

var fs = require('fs');

fs.writeFileSync('output.js', result.code);
fs.writeFileSync('output.js.sourcemap', result.sourceMap);

CLI is currently in the making, and will be up and running early next week; stay tuned!

版本列表
0.9.12 2017-12-16
0.9.5 2017-12-06
0.9.2 2017-12-05
0.9.0 2017-12-05
0.5.880 2017-01-29
0.5.850 2017-01-11
0.5.800 2017-01-07
0.5.200 2017-01-01
0.5.95 2016-12-29
0.5.90 2016-12-27
0.5.80 2016-12-27
0.5.45 2016-12-09
0.5.35 2016-12-09
0.5.29 2016-12-08
0.5.18 2016-12-01
0.5.12 2016-11-30
0.5.8 2016-11-30
0.5.2 2016-11-29
0.5.0 2016-10-11