Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fisker/evaluate-in-browser
Evaluate function in browser
https://github.com/fisker/evaluate-in-browser
Last synced: 5 days ago
JSON representation
Evaluate function in browser
- Host: GitHub
- URL: https://github.com/fisker/evaluate-in-browser
- Owner: fisker
- License: mit
- Created: 2021-12-10T08:59:58.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-25T04:10:52.000Z (22 days ago)
- Last Synced: 2024-10-26T17:40:59.156Z (20 days ago)
- Language: JavaScript
- Size: 188 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# evaluate-in-browser
[![Build Status][github_actions_badge]][github_actions_link]
[![Coverage][coveralls_badge]][coveralls_link]
[![Npm Version][package_version_badge]][package_link]
[![MIT License][license_badge]][license_link][github_actions_badge]: https://img.shields.io/github/workflow/status/fisker/evaluate-in-browser/CI/main?style=flat-square
[github_actions_link]: https://github.com/fisker/evaluate-in-browser/actions?query=branch%3Amain
[coveralls_badge]: https://img.shields.io/coveralls/github/fisker/evaluate-in-browser/main?style=flat-square
[coveralls_link]: https://coveralls.io/github/fisker/evaluate-in-browser?branch=main
[license_badge]: https://img.shields.io/npm/l/prettier-format.svg?style=flat-square
[license_link]: https://github.com/fisker/evaluate-in-browser/blob/main/license
[package_version_badge]: https://img.shields.io/npm/v/evaluate-in-browser.svg?style=flat-square
[package_link]: https://www.npmjs.com/package/evaluate-in-browser> Evaluate function in browser
## Installation
```bash
yarn add evaluate-in-browser
```## Usage
```js
import {evaluate} from 'evaluate-in-browser'const result = await evaluate(() => 1 + 2)
console.log(result)
//=> 3
```