Skip to content

esast/esast-from-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Convert a raw estree to an esast tree.

Install

npm install --save esast/esast-from-json
# or:
bower install --save esast/esast-from-json

Use

import {parse} from 'acorn'
import Node from 'esast/lib/ast'
import fromJson from 'esast-from-json/from-json'
const src = '1 + 1'
const ast: Node = fromJson(parse(src))

About

Convert a JSON syntax tree to esast

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published