A JSON Parser based on PEG.js
Clone or download
Latest commit 16e819c Dec 13, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist 🎉 Initialize Repo Dec 13, 2018
lib 🎉 Initialize Repo Dec 13, 2018
src 🎉 Initialize Repo Dec 13, 2018
test 🎉 Initialize Repo Dec 13, 2018
.babelrc 🎉 Initialize Repo Dec 13, 2018
.gitignore 🎉 Initialize Repo Dec 13, 2018
LICENSE Initial commit Dec 12, 2018
README.md 🎉 Initialize Repo Dec 13, 2018
gulpfile.js 🎉 Initialize Repo Dec 13, 2018
index.js 🎉 Initialize Repo Dec 13, 2018
package.json 🎉 Initialize Repo Dec 13, 2018
yarn.lock 🎉 Initialize Repo Dec 13, 2018

README.md

peg-json-parser

A JSON Parser based on PEG.js

Install

# yarn
$ yarn add peg-json-parser

# or npm
$ npm install peg-json-parser --save

Usage

import { parse, astParse } from 'peg-json-parser';

// like JSON.parse()
parse('{"some": "json"}');

// return ESTree
astParse('{"some": "json"}');