Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jora-sandbox

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jora-sandbox

Sandbox for Jora (a JSON query language)

  • 1.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 29 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc