1.3.0 • Published 3 years ago

jora-sandbox v1.3.0

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years ago

Jora sandbox

A Web interface to play with jora syntax or transform some JSON with zero setup

Try it online

Run locally

git clone https://github.com/discoveryjs/jora-sandbox.git
cd jora-sandbox
npm install
npm start

To build a static version:

npm run build

And open docs/index.html in your browser.

Using as a package

NPM version

Install

npm i jora-sandbox

Generate a sandbox HTML file content

const createSandboxFileContent = require('jora-sandbox');

createSandboxFileContent(
    {
        data: { hello: 'world' },
        name: 'Source of data',   // not using currently
        createdAt: new Date()     // not using currently
    },
    'hello' // query by default
);
// returns a content of html with injected data and 

See example of usage in --sandbox option implementation of jora-cli.

License

MIT

1.3.0

3 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.1

5 years ago

1.0.0

5 years ago