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

Readme

Keywords

Package Sidebar

Install

npm i ppjs-parser

Weekly Downloads

1

Version

0.2.0

License

MIT

Unpacked Size

47.5 kB

Total Files

8

Last publish

Collaborators

  • nhn.dev