1
0
Fork 0
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:
Joshua Peek 2014-05-19 09:55:24 -04:00
parent 3ebe3d4022
commit 9c02129a78

View file

@ -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.