This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

jpli

1.0.1 • Public • Published

JPL - JSON Processing Language - JavaScript implementation

Code example

import jpl from 'jpli';

(async () => {
  const inputs = [null];

  const results = await jpl.run('"Hello, 🌎!"', inputs);

  console.log(...results);
})();

REPL

The package provides a CLI REPL, which can be used as a language playground.

> jpl # or `npm start`

Welcome to JPL v1.0.0.
Type ":h" for more information.

> "Hello, \('🌎', 'JPL')!"
"Hello, 🌎!", "Hello, JPL!"
>

For debugging purposes or to be able to dive into how a code snippet is interpreted, the REPL provides a :i directive.

> :i "Hello, 🌎!"
[
  {
    "op": "\"\"",
    "params": {
      "value": "Hello, 🌎!"
    }
  }
]
>

Extending JPL

TODO: inform about the runtime API, functions, JPLTypes and different error types

Readme

Keywords

Package Sidebar

Install

npm i jpli

Weekly Downloads

20

Version

1.0.1

License

MIT

Unpacked Size

410 kB

Total Files

245

Last publish

Collaborators

  • 2manyvcos