JSPM

  • Created
  • Published
  • Downloads 34
  • Score
    100M100P100Q48615F
  • License ISC

An insane fast Javascript toolchain supporting both Javascript and Typescript

Package Exports

  • kataw

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (kataw) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Kataw

An insane fast Javascript toolchain.

Meriyah NPM


WIP

Kataw is a javascript toolchain with high focus on performance, and it's main goal is to unify functionality that has previously been separate tools.

A demo of a JS printer (WIP) can be tested here

This is what Kataw can do:

  • parse Javascript

  • typechecking (like Typescript and Flow)

  • transform current ECMA code to older ECMA versions (like Babel)

  • global API to perform AST manipulation and tree walkers

  • Pretty printing (like Prettier)

  • Grammar checker

  • Linting (like ESLint)

  • Minify (Like Terser)

Transformers

Transformers is WIP, but transformers for ES2020, ES2019 and 2016 exist and allow you to transpile current Javascript code to an earlier versions in the same way as Babel does it.

The main difference from Babel is that the transformer API is a public API, and allow you to develop your own transformers.

This is still WIP, and we would preciate it if someone would help us writing transformers.

Current state

Only the Kataw parser, transformers, walkers, AST manipulation through global API is available as of now.

Soon as this code is in a "stable state" I will add the rest of the tools

Future

  • A "hook system" for adding additional rules for the linter and the grammar checker will be published.

  • Hooks to support experimental syntax and ECMA proposals in an sandboxed envirnonment