npm.io
2.0.0 • Published 6 years ago

@yomed/sitemap

Licence
MIT
Version
2.0.0
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
2

sitemap

Note: intended to run once per server load, so it's sync

npm i @yomed/sitemap -S

Usage

var sitemap = require('sitemap');

sitemap.create([
  {
    loc: 'http://example.com/'
  },
  {
    loc: 'http://example.com/',
    priority: '1.0'
  }
], 'absolute/path/sitemap.xml'); // defaults to dist/root/sitemap.xml