google-news-sitemap
TypeScript icon, indicating that this package has built-in type declarations

1.0.10 • Public • Published

Google News Sitemap Generator For NodeJS

npm GitHub tag (latest SemVer)

const GoogleNewsSitemap = require('google-news-sitemap');
const builder = new GoogleNewsSitemap();
builder.add({
  location: "http://example.com/article1",
  title: "item 1",
  publication_date: "May 24, 2012",
  publication_language: "en",
  publication_name: "Dimas Lanjaka",
});
builder.add({
  location: "http://example.com/article2",
  title: "item 2",
  publication_language: "en",
  publication_date: "May 25, 2012",
  publication_name: "Dimas Lanjaka",
});
console.log(builder.toString());

VIEW FULL EXAMPLE

image

Google News related questions? Find answers in the Google News Help Forum

Site using this package

www.webmanajemen.com

Package Sidebar

Install

Weekly Downloads

56

Version

1.0.10

License

MIT

Unpacked Size

499 kB

Total Files

24

Last publish

Collaborators

  • dimaslanjaka