Description
Use the application environment (application key: :execjs, key: :runtime) to set the runtime Execjs uses. Alternatively, the EXECJS_RUNTIME environment variable can also be used to set the runtime.
Execjs alternatives and similar packages
Based on the "Third Party APIs" category.
Alternatively, view Execjs alternatives based on common mentions on social networks and blogs.
-
MongoosePush
MongoosePush is a simple Elixir RESTful service allowing to send push notification via FCM and/or APNS. -
sparkpost
SparkPost client library for Elixir https://developers.sparkpost.com -
elixtagram
:camera: Instagram API client for the Elixir language (elixir-lang) -
google_sheets
Elixir library for fetching Google Spreadsheet data in CSV format -
pay_pal
:money_with_wings: PayPal REST API client for the Elixir language (elixir-lang) -
amazon_product_advertising_client
An Amazon Product Advertising API client for Elixir -
cashier
Cashier is an Elixir library that aims to be an easy to use payment gateway, whilst offering the fault tolerance and scalability benefits of being built on top of Erlang/OTP -
elixir_ipfs_api
The Elixir library that is used to communicate with the IPFS REST endpoint. -
airbrake
An Elixir notifier to the Airbrake/Errbit. System-wide error reporting enriched with the information from Plug and Phoenix channels.
Learn Elixir in as little as 12 Weeks
Do you think we are missing an alternative of Execjs or a related project?
Popular Comparisons
README
Execjs
Execjs
allows you easily run JavaScript from Elixir. It can automatically
pick the best runtime available on the system.
Runtimes
Execjs
supports the following runtimes:
Use the application environment (application key: :execjs
, key: :runtime
)
to set the runtime Execjs
uses. Alternatively, the EXECJS_RUNTIME
environment variable can also be used to set the runtime.
Usage
eval
iex> "'red yellow blue'.split(' ')" |> Execjs.eval
["red", "yellow", "blue"]
compile
/call
iex> {source, 0} = System.cmd("curl", ["-fsSL", "--compressed", "https://coffeescript.org/browser-compiler/coffeescript.js"])
iex> context = Execjs.compile(source)
iex> Execjs.call(context, "CoffeeScript.compile", ["square = (x) -> x * x"])
"(function() {\n var square;\n\n square = function(x) {\n return x * x;\n };\n\n}).call(this);\n"