Socket
Socket
Sign inDemoInstall

evalbuilder

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    evalbuilder

easily build eval strings


Version published
Weekly downloads
1
Maintainers
1
Install size
2.83 kB
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 07 Apr 2018

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc