exec-engine-js

0.0.8 • Public • Published

#readme

An easy way to execute Javascript source code made up of strings.

import { rawRun } from 'exec-engine-js'
let exec = rawRun(strings)

example.

import { rawRun } from 'exec-engine-js'

let strings = "let a = 30 \n return a"
let exec =  rawRun(strings)
console.log(exec) // 30
console.log(typeof exec) //number

If you have any bugs or requests, please contact us https://github.com/imamiya-masaki/engine-js-test

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i exec-engine-js

    Weekly Downloads

    0

    Version

    0.0.8

    License

    MIT

    Unpacked Size

    20.5 kB

    Total Files

    5

    Last publish

    Collaborators

    • imamiya-masaki