<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

# index

Translates from [s-expressions](https://github.com/WebAssembly/spec) to the WebAssembly [binary-encoding](https://github.com/WebAssembly/design/blob/master/BinaryEncoding.md)

**Parameters**

-   `text` **[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** the s-expression to convert
-   `log` **\[Bool](default false)** wether or not to produce a log

Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)** which resolves an object with the property `buffer` for
for the compiled binary and `log` for the log
