Skip to content

tritiumNetworks/SafeEval

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

그냥 심심해서 만들었음

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published