This is a polyfill for Buffer#indexOf introduced in NodeJS 4.0.
Installations
npm install buffer-indexof-polyfill
Developer Guide
Typescript
No
Module System
CommonJS
Min. Node Version
>=0.10
Node Version
12.16.3
NPM Version
6.14.5
Score
99.9
Supply Chain
75.8
Quality
75.4
Maintenance
100
Vulnerability
100
License
Releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
sarosia
Download Statistics
Total Downloads
471,949,186
Last Day
232,854
Last Week
1,396,223
Last Month
10,836,180
Last Year
139,862,990
GitHub Statistics
2 Stars
24 Commits
2 Forks
2 Watching
2 Branches
3 Contributors
Bundle Size
999.00 B
Minified
444.00 B
Minified + Gzipped
Package Meta Information
Latest Version
1.0.2
Package Id
buffer-indexof-polyfill@1.0.2
Size
2.99 kB
NPM Version
6.14.5
Node Version
12.16.3
Publised On
09 Sept 2020
Total Downloads
Cumulative downloads
Total Downloads
471,949,186
Last day
-17.3%
232,854
Compared to previous day
Last week
-44.6%
1,396,223
Compared to previous week
Last month
-6.4%
10,836,180
Compared to previous month
Last year
18.2%
139,862,990
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
buffer-indexof-polyfill
This is a polyfill for Buffer#indexOf
and Buffer#lastIndexOf introduced in NodeJS 4.0.
Example
1require("buffer-indexof-polyfill");
2
3new Buffer("buffer").indexOf("uff") // return 1
4new Buffer("buffer").indexOf("abc") // return -1
Installation
1npm install buffer-indexof-polyfill
License
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
SAST tool detected but not run on all commits
Details
- Info: SAST configuration detected: CodeQL
- Warn: 0 commits out of 14 are checked with a SAST tool
Reason
Found 3/14 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1
- Info: no jobLevel write permissions found
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/sarosia/buffer-indexof-polyfill/codeql-analysis.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/sarosia/buffer-indexof-polyfill/codeql-analysis.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/sarosia/buffer-indexof-polyfill/codeql-analysis.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:67: update your workflow using https://app.stepsecurity.io/secureworkflow/sarosia/buffer-indexof-polyfill/codeql-analysis.yml/master?enable=pin
- Info: 0 out of 4 GitHub-owned GitHubAction dependencies pinned
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
4.1
/10
Last Scanned on 2024-12-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More