Nihilism Philisophy Major

    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

    Keywords

    none

    Install

    npm i prettier-doc-interpreter

    DownloadsWeekly Downloads

    2

    Version

    0.1.2

    License

    MIT

    Unpacked Size

    566 kB

    Total Files

    6

    Last publish

    Collaborators

    • sosukesuzuki