# robots-txt

> Check user agents against robots.txt files

Latest version **1.0.0** (published 2016-07-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install robots-txt
pnpm add robots-txt
yarn add robots-txt
bun add robots-txt
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-07-12 |
| First published | 2014-10-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Jan Potoms |
| Maintainers | janpotoms, mickael-van-der-beek, ndemoor, woorank-admin, woorank-ci |
| Keywords | robots, robots.txt |

## Links

- npm: https://www.npmjs.com/package/robots-txt
- Repository: https://github.com/Woorank/robots-txt
- Issues: https://github.com/Woorank/robots-txt/issues
- npm.io page: https://npm.io/package/robots-txt

## Dependencies (7)

- [extend](https://npm.io/package/extend.md) ^2.0.0
- [request](https://npm.io/package/request.md) ^2.45.0
- [through](https://npm.io/package/through.md) ^2.3.6
- [bluebird](https://npm.io/package/bluebird.md) ^2.3.5
- [level-ttl](https://npm.io/package/level-ttl.md) ^2.1.0
- [robots-txt-guard](https://npm.io/package/robots-txt-guard.md) ~0.0.2
- [robots-txt-parse](https://npm.io/package/robots-txt-parse.md) ~0.0.2

## Recent versions

- 1.0.0 (latest) — 2016-07-12
- 0.1.5 — 2015-12-22
- 0.1.4 — 2015-07-22
- 0.1.3 — 2015-04-02
- 0.1.2 — 2014-10-30
- 0.1.1 — 2014-10-29
- 0.1.0 — 2014-10-23
- 0.0.3 — 2014-10-22
- 0.0.2 — 2014-10-20

## README

# robots-txt [![Build Status](https://travis-ci.org/Woorank/robots-txt.svg)](https://travis-ci.org/Woorank/robots-txt)

Handles checking of robots.txt. handles concurrent requests and caching.

## usage

```js
var robots = require('robots-txt'),
    level  = require('level');

var bot = robots({
  db: level('./robots-txt-cache'),
  ttl: 1000 * 60 * 60 * 24 // one day
});

bot.isAllowed('woobot', 'http://www.woorank.com/my/path')
  .then(function (isAllowed) {
    // ...
  });

```

This module fetches robots.txt files and optionally caches them in a level-db.
parsing and checking of robots.txt files is done by secondary modules [robots-txt-parse](https://github.com/Woorank/robots-txt-parse) and [robots-txt-guard](https://github.com/Woorank/robots-txt-guard) and can be used separately.

---
_Source: https://npm.io/package/robots-txt · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
