kerouac-robotstxt

0.7.0 • Public • Published

kerouac-robotstxt

Kerouac middleware that gives instructions to web crawlers using the Robots Exclusion Protocol.

Install

$ npm install kerouac-robotstxt

Usage

Declare a robots.txt route, using this middleware.

var robots = require('kerouac-robotstxt');

site.page('/robots.txt', robots());

And map a robots.txt file when generating the site.

site.generate([
  robots.createMapper()
]);

The generated output will include a /robots.txt file. If your site contains any sitemaps, which can be generated using kerouac-sitemap, the locations of those sitemaps will be included so that search engines can automatically discover all pages of your site.

License

The MIT License

Copyright (c) 2012-2022 Jared Hanson <https://www.jaredhanson.me/>

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.7.0
    0
    • latest

Version History

Package Sidebar

Install

npm i kerouac-robotstxt

Weekly Downloads

0

Version

0.7.0

License

MIT

Unpacked Size

10.6 kB

Total Files

8

Last publish

Collaborators

  • jaredhanson