# `Alternera.Plugins.Javascript`
[🔗](https://github.com/10e-ab/alternera-wasm/blob/v0.9.1/alternera_plugin_javascript/lib/alternera/plugins/javascript.ex#L1)

The JavaScript step: a script written as the body of a function, run on
the request or the response in a fresh WebAssembly instance per call.
What it returns goes where its To rows say, as Script's returned value
does.

Everything a language step does is the framework's
(`PluginWasmFramework.Language`): settings, the env, host calls, results,
the memory limit and the editor (`PluginWasmFramework.StepEditor`). This
module names the language and its module, `priv/javascript.wasm`, built
by `guest/build.sh` from `guest/javascript_guest.c` and
`guest/prelude.js`, which is the script's API (`docs/internals.adoc`).

Experimental: installed only with `:experimental_plugins` set
(`Pipelines.PluginRegistry`) until the runtime binding is chosen.

# `language`

```elixir
@spec language() :: Alternera.PluginWasmFramework.Language.t()
```

The language this plugin runs. Built per call rather than held in a
module attribute, so the module's path is the installation's, not the
build machine's.

# `module_path`

```elixir
@spec module_path() :: Path.t()
```

Where the built module is, in this installation.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
