norobots

0.1.0 • Public • Published

norobots

An attempt to implement the 1997 Internet Draft specification A Method for Web Robots Control.

Usage

const norobots = require('norobots')
let robots = norobots('User-Agent: *\nDisallow: /cgi-bin/\n')
if (robots.allow('fig-tree', '/example.html')) {
  // Go fetch the url
}
 

Package Sidebar

Install

npm i norobots

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • wdfang