meriyah-printer
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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);

Readme

Keywords

none

Package Sidebar

Install

npm i meriyah-printer

Weekly Downloads

3

Version

1.0.3

License

MIT

Unpacked Size

77.8 kB

Total Files

15

Last publish

Collaborators

  • jasperdm