6.4.2 • Published 3 years ago
@rebelware/fibonacci-generator v6.4.2
Linux | Windows | MacOS |
---|---|---|
fib-tools
Get the nth Number in the series
const {getNumber} = require('@bbq-beets/fib-tools')
assert.strictEqual(getNumber(8), 21)
Get a List of Numbers
const {getList} = require('@bbq-beets/fib-tools')
assert.strictDeepEqual(getList(8), [0, 1, 1, 2, 3, 5, 8, 13, 21])
Get a Sequence of Numbers
const {getSequence} = require('@bbq-beets/fib-tools')
const seq = getSequence()
for (const n of seq) {
console.log(n) // The next Fibonacci number in the sequence
}
Code Scanning Demo
This repository demonstrates an instance of CWE-020: Improper Imput Validation.
- Run through the setup flow in the security tab to enable code scanning. Commit directly to master.
- Go to actions, and confirm that the analysis has run successfully.
- Edit script.js and add this code snippet. Create a PR. Wait for validation.
function endsWith(x, y) {
return x.lastIndexOf(y) === x.length - y.length;
}
6.4.2
3 years ago
6.4.1
3 years ago
6.4.0
3 years ago
6.3.6
3 years ago
6.3.5
3 years ago
6.3.4
3 years ago
6.3.3
3 years ago
6.3.2
3 years ago
6.3.0
3 years ago
6.2.4
3 years ago
6.1.1
3 years ago
6.0.13
3 years ago
6.0.12
4 years ago
6.0.11
4 years ago
6.0.9
4 years ago
6.0.1
4 years ago
6.0.0
4 years ago
5.9.1
4 years ago
5.9.5
4 years ago
5.9.4
4 years ago
5.9.3
4 years ago
5.9.0
4 years ago
5.8.0
4 years ago
5.7.12
4 years ago
5.7.11
4 years ago
5.7.10
4 years ago
5.7.9
4 years ago
5.7.8
4 years ago
5.7.5
4 years ago
5.7.2
4 years ago
5.7.1
4 years ago
4.1.1
4 years ago
4.0.0
4 years ago
3.0.2
4 years ago
0.0.1
4 years ago
1.0.5
4 years ago
1.0.0
4 years ago
0.0.7
4 years ago
0.0.3
4 years ago