Skip to content

docs: update readme#35

Merged
blond merged 1 commit into
masterfrom
docs
Nov 12, 2017
Merged

docs: update readme#35
blond merged 1 commit into
masterfrom
docs

Conversation

@blond

@blond blond commented Nov 11, 2017

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread README.md Outdated

var package = safeEval(requireContent);
console.log(package.name); // 'node-eval'
nodeEval(requireContents); // { name: 'node-eval' }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about path to file to provide required info to resolve relative paths inside evaluating code?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feels like we need one more example with resolving paths.

Comment thread README.md

nodeEval(fs.readFileSync(evaluatingFile, 'utf-8'), evaluatingFile);
// '../files/another.js' will be resolved to '/repos/open-source-project/files/another.js'
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This example...

@blond blond merged commit 16d52b8 into master Nov 12, 2017
@blond blond deleted the docs branch November 12, 2017 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants