fib.wasm

1.0.1 • Public • Published

fib.wasm

calculate fibonacci numbers using wasm.

intended more as a wasm example than because anyone seriously needs to calculate fibonacci numbers.

example

var f = require('fib.wasm')

f.fib(1) => 1
f.fib(2) => 2
f.fib(3) => 3
f.fib(4) => 5
f.fib(5) => 8
...
f.fib(1000) => 1318412525

anyway but the real reason I wrote this is so you can read the code.

other handwritten wat on npm to read

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i fib.wasm

Weekly Downloads

4

Version

1.0.1

License

MIT

Unpacked Size

4.71 kB

Total Files

7

Last publish

Collaborators

  • dominictarr