Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

estree-eval

Appveyor Build status npm package Greenkeeper badge

Evaluate estrees:

import { evaluate } from 'estree-eval';
import { parseExpressionAt } from 'acorn';

const ast = parseExpressionAt('message.toUpperCase()', 0);

const scope = { message: 'hello world' };

const result = evaluate(ast, scope); // HELLO WORLD

Try this package in your browser using runkit.

About

Evaluate estrees

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages