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

1.0.2 • 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-utils/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-utils/printer

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

84.7 kB

Total Files

21

Last publish

Collaborators

  • jasperdm