0.1.4 • Published 5 years ago

@swimmy/sitemap v0.1.4

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

Sitemap

This package is for TypeScript.

Installation

$ yarn add @swimmy/sitemap

Usage

import { createSitemap } from '@swimmy/sitemap'

const hostname = 'https://example.dev'

const data = createSitemap([
  { loc: `${hostname}/` },
  { loc: `${hostname}/posts` },
  { loc: `${hostname}/posts/a`, lastmod: '2020-01-01' },
  { loc: `${hostname}/posts/b`, lastmod: '2020-01-02' },
  { loc: `${hostname}/posts/c`, lastmod: '2020-01-03' }
])

console.log(data)
0.1.4

5 years ago

0.1.2

5 years ago

0.1.3

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago