Based on XMLWriter (Inist-CNRS/node-xml-writer)
npm install sitemap-writerbash
npm install sitemap-daemon
`Example
`es6
import {SitemapWriter} from 'sitemap-writer'var w = new SitemapWriter();
w.startDocument()
w.startURLSet();
w.writeURL({loc: '/'});
w.startURL({loc: '/abc'});
w.writeImage({loc: '/img/1.jpg'});
w.endURL();
w.endURLSet();
w.endDocument();
console.log('sitemap: %s', w.toString());
``