Gathering detailed insights and metrics for robots-txt-parse
Gathering detailed insights and metrics for robots-txt-parse
Gathering detailed insights and metrics for robots-txt-parse
Gathering detailed insights and metrics for robots-txt-parse
npm install robots-txt-parse
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
3 Stars
45 Commits
1 Forks
6 Watchers
4 Branches
6 Contributors
Updated on Apr 25, 2023
Latest Version
2.0.1
Package Id
robots-txt-parse@2.0.1
Size
4.30 kB
NPM Version
6.14.11
Node Version
10.23.3
Published on
Feb 23, 2021
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
5
Streaming robots.txt parser
1const parse = require('robots-txt-parse'); 2const fs = require('fs'); 3 4const input = fs.createReadStream(__dirname + '/robots.txt'); 5const result = await parse(input);
assuming this file
user-agent: *
user-agent: googlebot
disallow: /
user-agent: twitterbot
disallow: /
allow: /twitter
user-agent: mozilla
disallow: /path
noindex: /path
Sitemap: http://www.example.com/sitemap.xml
produces following output
1{ 2 "groups": [{ 3 "agents": [ "*", "googlebot" ], 4 "rules": [ 5 { "rule": "disallow", "path": "/" } 6 ] 7 }, { 8 "agents": [ "twitterbot" ], 9 "rules": [ 10 { "rule": "disallow", "path": "/" }, 11 { "rule": "allow", "path": "/twitter" } 12 ] 13 }, { 14 "agents": [ "mozilla" ], 15 "rules": [ 16 { "rule": "disallow", "path": "/path" }, 17 { "rule": "noindex", "path": "/path" } 18 ] 19 }], 20 "extensions": [ 21 { "extension": "sitemap", "value": "http://www.example.com/sitemap.xml" } 22 ] 23}
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 2/5 approved changesets -- score normalized to 4
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
15 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-14
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