2.0.6 • Published 5 years ago

@zdigital/sitemap-generator v2.0.6

Weekly downloads
8
License
MIT
Repository
-
Last release
5 years ago

@zdigital/sitemap-generator

npm.io

A sitemap.xml generator.

Install

$ npm i @zdigital/sitemap-generator --save

Usage

const sitemapGenerator = require('@zdigital/sitemap-generator');

if (app.get('env') === 'development') {
    const filePath = `${__dirname}/public/sitemap.xml`;
    const highPriority = [
        'https://example.com',
    ];
    const lowPriority = [
        'https://example.com/about',
        'https://example.com/contact',
    ];

    sitemapGenerator(highPriority, lowPriority, filePath, () => {
        console.log('Sitemap.xml generated!');
    });
}

License

MIT © Zona Digital

2.0.6

5 years ago

2.0.5

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.1-y.0

5 years ago

2.0.1-alpha.12

5 years ago