request-robots

2.0.1 • Public • Published

request-robots

npm version npm download Build Status Greenkeeper badge

An express.js middleware for handling noisy robots.ico

Modern browsers usually asks for robots of the website. Having a robots in a Web page is a good thing (normally).

However it is not always desired and sometime developers need a way to avoid the extra payload.

Nice way to handle that is to send 204 status code for /robots.txt requests.

Install

npm install request-robots

Example

const express = require('express');
const robots = require('request-robots');
 
const app = express();
app.use(robots());
 
// Add your routes here, etc.
 
app.listen(3000);

License

MIT

Dependencies (0)

    Dev Dependencies (7)

    Package Sidebar

    Install

    npm i request-robots

    Weekly Downloads

    1

    Version

    2.0.1

    License

    ISC

    Unpacked Size

    4.61 kB

    Total Files

    5

    Last publish

    Collaborators

    • honzahommer