New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

esschema

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esschema

Esprima compatible AST description through JSON Schema

latest
Source
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

esschema

Attempts to describe the Mozilla Parser AST compatible Esprima AST via a JSON Schema.

While the primary purpose of Esschema is to describe the AST, the esschema.json file can be used with JSON Schema validation libraries to validate an AST.

Esschema is created and maintained by Dusty Little.

Rational

Why use a JSON Schema to validate Esprima AST when there are other more performant libraries like Esvalidate. While Esschema can be used to validate the AST the primary purpose is to describe the AST in a format that can be read by other tools (stay tuned to scratch.js for an example)

Run Tests

Esschema includes a large number of tests most of which are adapted from the Mozilla Parser AST test suite itself. Execute these tests using mocha:

`mocha -R spec

FAQs

Package last updated on 08 Jan 2015

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