{"id":15296003,"url":"https://github.com/jenbuzz/express-simple-sitemap","last_synced_at":"2025-10-07T08:30:52.378Z","repository":{"id":76858537,"uuid":"160957842","full_name":"jenbuzz/express-simple-sitemap","owner":"jenbuzz","description":":world_map: The simplest way to add a sitemap to an express application","archived":true,"fork":false,"pushed_at":"2020-06-08T11:15:20.000Z","size":204,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-18T10:12:13.268Z","etag":null,"topics":["express","express-middleware","expressjs","sitemap","sitemap-generator","sitemap-xml"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jenbuzz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-08T16:34:44.000Z","updated_at":"2023-04-16T11:14:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"b444c619-c719-47bb-a93d-3efaafb558cc","html_url":"https://github.com/jenbuzz/express-simple-sitemap","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenbuzz%2Fexpress-simple-sitemap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenbuzz%2Fexpress-simple-sitemap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenbuzz%2Fexpress-simple-sitemap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenbuzz%2Fexpress-simple-sitemap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jenbuzz","download_url":"https://codeload.github.com/jenbuzz/express-simple-sitemap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235607123,"owners_count":19017298,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["express","express-middleware","expressjs","sitemap","sitemap-generator","sitemap-xml"],"created_at":"2024-09-30T18:08:55.884Z","updated_at":"2025-10-07T08:30:46.978Z","avatar_url":"https://github.com/jenbuzz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://secure.travis-ci.org/jenbuzz/express-simple-sitemap.png?branch=master)](http://travis-ci.org/jenbuzz/express-simple-sitemap) [![Coverage Status](https://coveralls.io/repos/github/jenbuzz/express-simple-sitemap/badge.svg?branch=master)](https://coveralls.io/github/jenbuzz/express-simple-sitemap?branch=master)\n\n# express-simple-sitemap\nThe simplest way to add a sitemap to an express application.\n\n## Installation\n\n```bash\n$ npm install express-simple-sitemap\n```\nor\n```bash\n$ yarn add express-simple-sitemap\n```\n\n## Usage\n\n```javascript\n// express setup\nconst express = require('express');\nconst app = express();\n\n// import express-simple-sitemap\nconst sitemap = require('express-simple-sitemap');\n\n// add express-simple-sitemap as middleware\napp.use(sitemap({\n    sitemapUrl: '/sitemap.xml', // optional, default value is '/sitemap.xml'\n    urls: [\n        {\n            url: 'https://github.com/jenbuzz',\n            lastmod: '2018-12-08', // optional\n            changefreq: 'daily', // optional\n            priority: 1.0, // optional\n        },\n        {\n            url: 'https://github.com/jenbuzz/express-simple-sitemap',\n        },\n    ]\n}));\n```\n\nOutput:\n```xml\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003curlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\" xmlns:xhtml=\"http://www.w3.org/1999/xhtml\"\u003e\n    \u003curl\u003e\n        \u003cloc\u003ehttps://github.com/jenbuzz\u003c/loc\u003e\n        \u003clastmod\u003e2018-12-08\u003c/lastmod\u003e\n        \u003cchangefreq\u003edaily\u003c/changefreq\u003e\n        \u003cpriority\u003e1\u003c/priority\u003e\n    \u003c/url\u003e\n    \u003curl\u003e\n        \u003cloc\u003ehttps://github.com/jenbuzz/express-simple-sitemap\u003c/loc\u003e\n    \u003c/url\u003e\n\u003c/urlset\u003e\n```\n\n## License\nThis package is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjenbuzz%2Fexpress-simple-sitemap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjenbuzz%2Fexpress-simple-sitemap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjenbuzz%2Fexpress-simple-sitemap/lists"}