# evaluator

> Simple evaluator of files with JavaScript code.

Latest version **1.0.2** (published 2014-12-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install evaluator
pnpm add evaluator
yarn add evaluator
bun add evaluator
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2014-12-21 |
| First published | 2014-12-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Roman Yakimchuk |
| Maintainers | yakimchuk |
| Keywords | eval, js |

## Links

- npm: https://www.npmjs.com/package/evaluator
- Repository: https://github.com/yakimchuk/evaluator
- Issues: https://github.com/yakimchuk/evaluator/issues
- npm.io page: https://npm.io/package/evaluator

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.2 (latest) — 2014-12-21
- 1.0.1 — 2014-12-20
- 1.0.0 — 2014-12-20

## README

# [evaluator](https://github.com/yakimchuk/evaluator) #
>  Simplest module for evaluating local files with JavaScript code.

## How to install this module?
To install this module use following command at root path of your module:
``` bash
npm install evaluator --save
```

## Usage
This module exports function which waits only one argument on input: string with path to target file.

Function don't returns anything: them evaluate file content and return `undefined`.

**Example:**

``` javascript

/**
 * Content of file example.js: "console.log(1);"
 */

var evaluator;

evaluator = require('evaluator');

evaluator('./example.js');

// Number 1 was written into log.

```

---
_Source: https://npm.io/package/evaluator · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
