sitemap-writer

1.0.0 • Public • Published

SitemapWriter for Node.js

Based on XMLWriter (Inist-CNRS/node-xml-writer)

Installation

npm install sitemap-daemon

Example

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());

Readme

Keywords

Package Sidebar

Install

npm i sitemap-writer

Weekly Downloads

3

Version

1.0.0

License

MIT

Last publish

Collaborators

  • victorenator