Needlessly Provoking Marsupials

    eval-literals

    0.0.2 • Public • Published

    eval-literals

    Evaluate javascript literals

    example

    var evaluate = require('static-eval');
    var parse = require('esprima').parse;
     
    var src = '[{ x: 123 }]';
    var ast = parse(src).body[0].expression;
     
    console.log(evaluate(ast));

    install

    With npm do:

    npm install eval-literals
    

    license

    MIT

    Install

    npm i eval-literals

    DownloadsWeekly Downloads

    1

    Version

    0.0.2

    License

    MIT

    Unpacked Size

    4.45 kB

    Total Files

    6

    Last publish

    Collaborators

    • paulserraino