Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mnaoumov/debuggable-eval
Makes eval() debugger-friendly with ability to set breakpoints and see proper line numbers in the Error stack traces
https://github.com/mnaoumov/debuggable-eval
Last synced: about 1 month ago
JSON representation
Makes eval() debugger-friendly with ability to set breakpoints and see proper line numbers in the Error stack traces
- Host: GitHub
- URL: https://github.com/mnaoumov/debuggable-eval
- Owner: mnaoumov
- License: mit
- Created: 2023-07-21T15:32:20.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-24T03:14:10.000Z (over 1 year ago)
- Last Synced: 2024-10-13T13:38:48.520Z (2 months ago)
- Language: TypeScript
- Size: 303 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
- Security: SECURITY.md
Awesome Lists containing this project
README
:package: debuggable-eval
Makes eval() debugger-friendly with ability to set breakpoints and see proper line numbers in the Error stack traces
># NPM Module debuggable-eval
[![codecov](https://codecov.io/gh/mnaoumov/debuggable-eval/branch/main/graph/badge.svg?token=Q9fr548J0D)](https://codecov.io/gh/mnaoumov/debuggable-eval)
Makes eval() debugger-friendly with ability to set breakpoints and see proper line numbers in the Error stack traces
## Usage
```bash
npm install debuggable-eval
``````js
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](https://github.com/mnaoumov).
This project is [MIT](LICENSE.md) licensed.