mirror of
https://github.com/rails/execjs
synced 2023-03-27 23:21:20 -04:00
Note that commonjs requires aren't supported
This commit is contained in:
parent
3ebe3d4022
commit
9c02129a78
1 changed files with 12 additions and 0 deletions
12
README.md
12
README.md
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue