sitetree-gen

1.2.3 • Public • Published

sitetree-gen

Sitetree Generator.

NPM Build Status MIT License

Installation

NPM

$ npm install sitetree-gen --save

Usage

CLI

Options:
  --url           target site url. [string]
  --output        output json file path. [string] [default: './sitetree.json']
  --speed         crawl speed. [number] [default: 3000]
  --version, -v   show this version. [boolean]
  --help, -h      show this help. [boolean]
$ sitetree-gen --url http://example.com --output ./sitetree.json --speed 3000

JavaScript

sitetreeGen({
  url: 'http://example.com',
  output: './sitetree.json',
  speed: 5000
}).then((sitetree) => {
  console.log('Complete!!');
});

JSON

{
  "name": "/",
  "title": "Front Page",
  "url": "http://example.com/",
  "children": [
    {
      "name": "archives",
      "children": [
        {
          "name": "category",
          "children": [
            {
              "name": "dog",
              "title": "Dog - Category - Archives - Front Page",
              "url": "http://example.com/archives/category/dog/"
            },
            {
              "name": "cat",
              "title": "Dog - Category - Archives - Front Page",
              "url": "http://example.com/archives/category/cat/"
            }
          ]
        }
      ]
    },
    {
      "name": "about",
      "title": "About - Front Page",
      "url": "http://example.com/about/",
      "children": [
        {
          "name": "animals",
          "title": "Animals - About - Front Page",
          "url": "http://example.com/about/animals/"
        }
      ]
    }
  ]
}

Sample Infographics

https://product.isaxxx.com/sitetree-gen/

Changelog

License

Readme

Keywords

Package Sidebar

Install

npm i sitetree-gen

Weekly Downloads

2

Version

1.2.3

License

MIT

Unpacked Size

42.9 kB

Total Files

20

Last publish

Collaborators

  • isaxxx