Skip to content
This repository has been archived by the owner on Jun 10, 2018. It is now read-only.

Commit

Permalink
Note that commonjs requires aren't supported
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed May 19, 2014
1 parent 3ebe3d4 commit 9c02129
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Expand Up @@ -35,6 +35,18 @@ A longer example, demonstrating how to invoke the CoffeeScript compiler:

$ gem install execjs


# FAQ

### Why can't I use CommonJS `require()` inside ExecJS?

ExecJS provides a lowest common denominator interface to any JavaScript runtime.
Use ExecJS when it doesn't matter which JavaScript interpreter your code runs
in. If you want to access the Node API, you should check another library like
[commonjs.rb](https://github.com/cowboyd/commonjs.rb) designed to provide a
consistent interface.


# License

Copyright (c) 2013 Sam Stephenson and Josh Peek.
Expand Down

0 comments on commit 9c02129

Please sign in to comment.