Skip to content

Commit

Permalink
version 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
stagas committed Jan 18, 2022
1 parent da299d9 commit 9320a68
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ $ npm i wat-compiler

#### Table of Contents

* [compile](#compile)
* [make](#make)
* [Parameters](#parameters)

### compile
### make

[index.js:25-27](https://github.com/stagas/wat-compiler/blob/da299d9672ca3cf692083212afadad27720fd8f1/index.js#L25-L27 "Source code on GitHub")

Compiles a WAT source string to a buffer.

Expand All @@ -48,6 +50,7 @@ console.log(instance.exports.answer()) // => 42
* `options` **Options** An options object

* `options.metrics` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** Enable metrics with console.time
* `context`  (optional, default `{}`)

Returns **[Uint8Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array)** The buffer to be passed on to WebAssembly

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wat-compiler",
"version": "0.1.1",
"version": "1.0.0",
"description": "webassembly wat text format to binary compiler",
"main": "./dist/cjs/index.js",
"types": "./index.d.ts",
Expand Down Expand Up @@ -32,7 +32,7 @@
"author": "stagas",
"license": "Public Domain",
"devDependencies": {
"documentation": "github:documentationjs/documentation",
"@stagas/documentation-fork": "^13.2.5",
"esbuild": "^0.14.2",
"eslint": "^8.3.0",
"rimraf": "^3.0.2"
Expand Down

0 comments on commit 9320a68

Please sign in to comment.