2.0.0 • Published 4 years ago
@yomed/sitemap v2.0.0
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