Skip to content

parasgera/protected-eval

 
 

Repository files navigation

Form.io Protected Eval Plugin

This plugin makes formiojs library to use sandboxed eval with custom js-interpreter instead of default eval function.

Usage

import ProtectedEval from '@formio/protected-eval';
import { Formio } from 'formiojs';

Formio.use(ProtectedEval);

Differences with classic eval

Plugin doesn't allow usage of following variables in custom scripts:

  • instance
  • self

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 66.8%
  • TypeScript 33.2%