2.0.1 • Published 4 years ago

seval v2.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

SafeEval

Just safe(?) eval function

Install

npm install seval or yarn add seval

Usage

const seval = require('seval')
const { basic: dangerlist } = require('seval/presets')
// preset list: basic, infLoop, this, blockAll

seval('console.log("Hello, world!")', { dangerlist })

How it works (it's simple!)

  • Make a separated box
  • Insert some codes
  • Remove some danger things
  • Run the codes in the box
  • Wow, super safe
2.0.1

4 years ago

2.0.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.3.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago