prettier-doc-interpreter
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

prettier-doc-interpreter

This is still experimental

Usage

import { evaluate } from "prettier-doc-interpreter";

const doc = `group(concat(["foo", hardline, "bar"]))`;
const formatted = evaluate(doc);
console.log(formatted); // foo\nbar

Todo

  • [x] Works on browsers

/prettier-doc-interpreter/

    Package Sidebar

    Install

    npm i prettier-doc-interpreter

    Weekly Downloads

    0

    Version

    0.1.2

    License

    MIT

    Unpacked Size

    566 kB

    Total Files

    6

    Last publish

    Collaborators

    • sosukesuzuki