fib.wasm

calculate fibonacci numbers using wasm.


License
MIT
Install
npm install fib.wasm@1.0.1

Documentation

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