1.0.10 • Published 7 years ago

koa-robotstxt v1.0.10

Weekly downloads
760
License
MIT
Repository
github
Last release
7 years ago

koa-robotstxt Build Status

Koa middleware for serving the robots.txt file..

Installation

$ npm install koa-robotstxt

Example

var koa = require('koa');
var robotstxt = require('koa-robotstxt');
var app = koa();

app.use(robotstxt(__dirname + '/public/robots.txt'));

API

robotstxt(path, options)

Returns a middleware serving the robots.txt found on the given path.

options

  • maxAge cache-control max-age directive in ms, defaulting to 1 day.

License

MIT

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.6

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago