1.1.4 • Published 2 years ago

@affrae/fib-tools v1.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@affrae/fib-tools

Total alerts Language grade: JavaScript npm.io Mark stale issues and pull requests

This module provides helper functions for the Fibonacci sequence.

Get the nth Number

const {getNumber} = require('@affrae/fib-tools')
assert.strictEqual(getNumber(8), 21)

Get a List of Numbers

const {getList} = require('@affrae/fib-tools')
assert.strictDeepEqual(getList(8), [0, 1, 1, 2, 3, 5, 8, 13, 21])

Get a Sequence of Numbers

const {getSequence} = require('@affrae/fib-tools')

const seq = getSequence()

for (const n of seq) {
  console.log(n) // The next Fibonacci number in the sequence
}

Acknowledgements

This is openly and heavily borrowed from Jonathan Clem's fib-tools project, and he is listed as copyright owner in the MIT License. I used this to teach myself ~LGTM and QL~ GitHub Advanced Security, along with GitHub Actions

License

The scripts and documentation in this project are released under the MIT License

1.1.1

2 years ago

1.1.4

2 years ago

1.1.2

2 years ago

1.0.1608629034

3 years ago

1.0.1601612753

4 years ago

1.0.1601605708

4 years ago

1.0.1601601555

4 years ago

1.0.1601597549

4 years ago

1.0.1601598085

4 years ago

1.0.1586824942

4 years ago

1.0.1584663466

4 years ago

1.0.1584658338

4 years ago

1.0.1579048835

4 years ago

1.0.1573186588

5 years ago

1.0.1573183112

5 years ago

1.0.1572942532

5 years ago

1.0.1572942367

5 years ago

1.0.1572941865

5 years ago

1.0.1572940851

5 years ago

1.0.1572938430

5 years ago

1.0.1572937811

5 years ago

1.0.1572843286

5 years ago

1.0.1572226223

5 years ago

1.0.1572225845

5 years ago

1.0.1572154939

5 years ago

1.0.1572154698

5 years ago

1.0.1572154483

5 years ago

1.0.1572150550

5 years ago

1.0.1572149636

5 years ago

1.0.1572149538

5 years ago

1.0.1572149254

5 years ago

1.0.1572149199

5 years ago

1.0.1572149176

5 years ago

1.0.1572149010

5 years ago

1.0.1572148887

5 years ago

1.0.1572145438

5 years ago

1.0.1572145036

5 years ago

1.0.1572144749

5 years ago

1.0.1572144664

5 years ago

1.0.1572144472

5 years ago

0.0.1

5 years ago