You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

evalbuilder

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

evalbuilder

easily build eval strings

0.0.1
latest
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

EvalBuilder

Eval string builder for javascript. To be used with libraries such as :

node-webworker-threads

or any other usecase that requires you to input the code as a string.

Build Status bitHound Dependencies bitHound Overall Score issues stars license

Installation

npm install evalbuilder --save

Usage:

const evalbuilder = require("evalbuilder")

console.log(evalbuilder.max(1,2)); // 'max(1,2)'
console.log(evalbuilder.sum([1,2,3])); // 'max([1,2,3])'
console.log(evalbuilder.sort({id:1,str:'hey'},{id:2,str:'hi'})) // 'sort({"id":1,"str":"hey"},{"id":2,"str":"hi"})'
console.log(evalbuilder.anyfunctioname('hello!')) //anyfunctioname("hello")


Implementation

Utilises javascript es6 Proxy.

Keywords

eval

FAQs

Package last updated on 07 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts