debuggable-eval
v1.2.0
Published
TypeScript NPM Module Boilerplate
Downloads
5
Readme
NPM Module debuggable-eval
Makes eval() debugger-friendly with ability to set breakpoints and see proper line numbers in the Error stack traces
Usage
npm install debuggable-eval
const debuggableEval = require('debuggable-eval');
// or
import debuggableEval from 'debuggable-eval';
debuggableEval(`console.log('Line 1');
console.log('Line 2');
throw new Error('Error in Line 3');`, 'testScript.js');
📝 License
Copyright © 2023 Michael Naumov.
This project is MIT licensed.