0.0.5 • Published 7 years ago

minimal-sitemap v0.0.5

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

Minimal Sitemap

A couple of very simple tools to create basic sitemaps when you have an array of urls.

Usage

toSiteMap({urls: Array, [prefix: String]})

Accepts an options object.

var ms = require('minimal-sitemap')

let sitemapString = ms.toSiteMap({
  urls: ['one', 'two', 'three'],
  prefix: 'https://mysi.te'
})

The value of sitemapString will then be:

<?xml version='1.0'?>
<urlset xmlns='http://www.sitemaps.org/schemas/sitemap/0.9'>
    <url>
        <loc>https://mysi.te/one</loc>
    </url>
    <url>
        <loc>https://mysi.te/two</loc>
    </url>
    <url>
        <loc>https://mysi.te/three</loc>
    </url>
</urlset>
0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago