1.0.2 • Published 11 years ago

evaluator v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
11 years ago

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:

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:

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

var evaluator;

evaluator = require('evaluator');

evaluator('./example.js');

// Number 1 was written into log.
1.0.2

11 years ago

1.0.1

11 years ago

1.0.0

11 years ago