1.0.7 • Published 3 years ago

react-seo-robotstxt v1.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

react-seo-robotstxt

React Robots.txt file Generator

Installation

npm

npm i react-seo-robotstxt

yarn

yarn add react-seo-robotstxt

Usage

Step 1: Create robots-txt.config file in your root directory.

Step 2: Add configurations as per your preference.

  module.exports = {
    policy: {
      userAgent: "*",
      disallow: ["/testdisallow", "/enterprise/orgs-terms"],
      allow: ["/testallow", "/browse"],
    },
  };

Example 02

  module.exports = {
    policy: {
      userAgent: "*",
      disallow: [""],
      allow: [],
    },
  };

Step 3: Import generateRobotText from the package in index.js

  const { generateRobotText } = require("react-seo-robotstxt");

  generateRobotText();
1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago