ya-xml-genx

1.0.2 • Public • Published

Command-line tool to generate sitemaps-xml file

Installation:

$ npm install ya-xml-genx

To run tool:

xml-genx --url <baseUrl> --jp <pathToJsonFile> --dest <destinationDir>

Command takes three parameters:

- base url
- json file path with list of urls
- destination path. Current working directory by default.

Tool produces a site-maps xml file with provided urls and dumps the file in the destination working directory.

Example json structure:

    {
      "categories": {
        "frequency": "monthly",
        "priority": 1,
        "urls": ["aaaa", "bbbb", "cccc"]
      },
      "editions": {
        "frequency": "weekly",
        "priority": 0.7,
        "urls": ["ffff", "gggg", "dddd"]
      },
      "posts": {
        "frequency": "weekly",
        "priority": 0.5,
        "urls": ["hhhhh", "eeeee", "ttttt"]
      }
    }

Package Sidebar

Install

npm i ya-xml-genx

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

15.7 kB

Total Files

6

Last publish

Collaborators

  • yaapis