{"library":"robots-parser","type":"library","category":null,"description":"`robots-parser` is a JavaScript/TypeScript library designed to parse `robots.txt` files according to the draft specification. As of version 3.0.1, it provides robust support for directives such as `User-agent`, `Allow`, `Disallow`, `Sitemap`, `Crawl-delay`, and `Host`, including advanced features like wildcard (`*`) and end-of-line (`$`) matching for paths. The library maintains an active development status, with recent releases addressing critical bug fixes (e.g., HTTPS URL port handling in 3.0.1) and improving compatibility (e.g., using global URL object in 3.0.0, adding TypeScript definitions in 2.4.0). Its primary differentiator is its adherence to the specification and comprehensive feature set for accurately determining URL crawlability for different user agents, making it a reliable choice for web crawlers and SEO tools.","language":"javascript","status":"active","version":"3.0.1","tags":["javascript","robots.txt","parser","user-agent","scraper","spider","bot","robots-exclusion-standard","typescript"],"install":[{"cmd":"npm install robots-parser","imports":["import robotsParser from 'robots-parser';","const robotsParser = require('robots-parser');","import type { RobotsParser } from 'robots-parser';"]},{"cmd":"yarn add robots-parser","imports":[]},{"cmd":"pnpm add robots-parser","imports":[]}],"homepage":"https://www.npmjs.com/package/robots-parser","github":"https://github.com/samclarke/robots-parser","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/robots-parser","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/robots-parser/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}