🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

kerouac-robotstxt

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kerouac-robotstxt

robots.txt middleware for Kerouac.

latest
Source
npmnpm
Version
0.7.0
Version published
Weekly downloads
14
55.56%
Maintainers
1
Weekly downloads
 
Created
Source

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/>

Keywords

robots

FAQs

Package last updated on 11 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts