Skip to content
This repository has been archived by the owner on Oct 15, 2021. It is now read-only.

An ast printer based on astring for meriyah's ast format

License

Notifications You must be signed in to change notification settings

DeMoorJasper/meriyah-printer

Repository files navigation

Meriyah Printer

Tiny and fast JavaScript code generator that is compatible with all browser-supported nodes meriyah produces, fork of the astring library.

Usage

import * as meriyah from 'meriyah';
import { generate } from 'meriyah-printer';

const ast = meriyah.parseModule(code, {
  module: true,
  webcompat: true,
  directives: true,
  next: true,
  raw: true,
  jsx: true,
});

const code = generate(ast);

About

An ast printer based on astring for meriyah's ast format

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published