0.2.5 • Published 11 months ago

extra-sitemap v0.2.5

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

extra-sitemap

Install

npm install --save extra-sitemap
# or
yarn add extra-sitemap

API

enum ChangeFrequency {
  Always
, Hourly
, Daily
, Weekly
, Monthly
, Yearly
, Never
}

interface IURLItem {
  url: string
  lastModdified?: Date
  priority?: 0.0 | 0.1 | 0.2 | 0.3 | 0.4 | 0.5 | 0.6 | 0.7 | 0.8 | 0.9 | 1.0
  changeFrequency?: ChangeFrequency
}

interface ISitemapItem {
  url: string
  lastModified?: Date
}

createSitemap

function createSitemap(urlItems: Iterable<IURLItem>): Iterable<string>

createSitemapAsync

function createSitemapAsync(urlItems: AsyncIterable<IURLItem>): AsyncIterable<string>

createSitemapIndex

function createSitemapIndex(sitemapItems: Iterable<ISitemapItem>): Iterable<string>

createSitemapIndexAsync

function createSitemapIndexAsync(
  sitemapItems: AsyncIterable<ISitemapItem>
): AsyncIterable<string>
0.2.5

11 months ago

0.2.4

1 year ago

0.2.3

1 year ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago