sitemapteam6
Version:
The elite unit of sitemap.xml generation—precise, efficient, dominating. If RobotsForce1 is your air defense, this is your recon mission.
61 lines (36 loc) • 1.56 kB
Markdown
>
`sitemapteam6` The elite unit of sitemap.xml generation—precise, efficient, dominating. If [RobotsForce1](https://github.com/alexstevovich/robotsforce1) is your air defense, this is your recon mission.
- Simple API, that is fluent and OOP lets you easily output the sitemap.xml web standard perfectly.
- Supports sitemap.xml and sitemap indexes.
- No dependencies, atomic, minimal, unopinionated.
<br>
[](https://www.npmjs.com/package/sitemapteam6)
[](LICENSE)
<br><br>
```sh
npm install sitemapteam6
```
<br><br>
```js
import { SitemapXml } from 'sitemapteam6';
const sitemap = new SitemapXml();
sitemap
.url('https://example.com/')
.priority(1.0)
.changefreq('daily')
.lastmod(new Date('2024-02-20'));
sitemap.url('https://example.com/about').lastmod(new Date('2024-02-21'));
console.log(sitemap.toSitemapXml());
```
<br><br>
I provide a package for `robots.txt` as well.
If you use these together your project will be backed by some of the most elite web standard writers in the world, if not the most elite.
[](https://github.com/alexstevovich/robotsforce1)
<br><br>
Licensed under the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0).