Nero Punished Miscreants

    ppjs-parser

    0.2.0 • Public • Published

    PPJS Parser (Pipe JS)

    Experimental implement pipe operator to Javascript. This will be a parser for ppjs (read as pipe js).

    Installation

    npm install ppjs-parser

    Usage

    import { convertPipeToJS } from "ppjs-parser";
    
    convertPipeToJS(`
    "text"
    |> capitalName()
    |> print()
    `); // print(capitalName("text"))

    Concept

    Parser will convert code to Esprima AST then use Escodegen to convert to Javascript code.

    TO DO

    • [x] Support array type

    Contributing

    Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

    Please make sure to update tests as appropriate.

    License

    MIT

    Install

    npm i ppjs-parser

    DownloadsWeekly Downloads

    3

    Version

    0.2.0

    License

    MIT

    Unpacked Size

    47.5 kB

    Total Files

    8

    Last publish

    Collaborators

    • nhn.dev