npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

fib.wasm

1.0.1

@dominictarr

npmHomeRepoSnykSocket
Downloads:4
$ npm install fib.wasm
DailyWeeklyMonthlyYearly

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

  • mafintosh/blake2b-wasm
  • mafintosh/siphash24
  • mafintosh/xsalsa20

License

MIT