New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@tegor/safe-eval

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

@tegor/safe-eval

safe eval

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

@tegor/safe-eval

NPM version

Forked from safe-eval

Changes in this fork

  • Support es module
  • Support typescript definition
  • Delete IIFE in source code

Install

pnpm install @tegor/safe-eval

Usage

commomjs

const safeEval = require('@tegor/safe-eval');

const code = '"app" + "le"'
const evaluated = safeEval(code)

es module

import safeEval fromm '@tegor/safe-eval';

const code = '"app" + "le"'
const evaluated = safeEval(code)

License

MIT License © 2022 fightwithtiger

FAQs

Package last updated on 08 Aug 2023

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