Skip to content

Commit

Permalink
docs: fix filename example
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Abramov committed Nov 12, 2017
1 parent 03ef74d commit 8f24aa9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,3 @@ v2.0.0 (2017-11-12)

[#33]: https://github.com/node-eval/file-eval/pull/33
[#35]: https://github.com/node-eval/file-eval/pull/35


4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ const nodeEval = require('node-eval');

// For example, current path is "/repos/project/lib/file.js".
const modulePath = '../files/another.js';
const moduleContents = fs.readFileSync(evaluatingFile, 'utf-8');
const moduleContents = fs.readFileSync(modulePath, 'utf-8');

// '../files/another.js' will be resolved to '/repos/project/files/another.js'
nodeEval(moduleContents, evaluatingFile);
nodeEval(moduleContents, modulePath);
```

#### context
Expand Down

0 comments on commit 8f24aa9

Please sign in to comment.