@ruhith/generate-robots-text

1.0.1 • Public • Published

generate-robots-text

Generate Robots.txt file with your custom configs

Installation

Usage

  1. After installation first create the main config file by running the following command


generate-robot -c

or

generate-robot --config
  1. then edit the config file

robot-txt.config.js

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

example


module.exports = {
    destinationPath : "/public",
    policy:
        {
            userAgent: "*",
            disallow: ["testDisallow", "/enterprise/orgs-terms"],
            allow: ["/browse/", "/contact/"]
        },
};

  1. run following commond to generate the robots.txt file
generate-robot -r

or

generate-robot --robot

All set

Package Sidebar

Install

npm i @ruhith/generate-robots-text

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

6.03 kB

Total Files

7

Last publish

Collaborators

  • ruhith