{"id":29120888,"url":"https://github.com/json-derulo/ngx-sitemaps","last_synced_at":"2026-03-16T18:32:57.276Z","repository":{"id":296216774,"uuid":"992679832","full_name":"json-derulo/ngx-sitemaps","owner":"json-derulo","description":"Generate sitemaps from Angular prerendered routes","archived":false,"fork":false,"pushed_at":"2025-05-29T14:49:05.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-26T01:05:03.729Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/json-derulo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2025-05-29T14:42:09.000Z","updated_at":"2025-05-29T15:10:43.000Z","dependencies_parsed_at":"2025-05-29T15:19:03.282Z","dependency_job_id":null,"html_url":"https://github.com/json-derulo/ngx-sitemaps","commit_stats":null,"previous_names":["json-derulo/ngx-sitemaps"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/json-derulo/ngx-sitemaps","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/json-derulo%2Fngx-sitemaps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/json-derulo%2Fngx-sitemaps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/json-derulo%2Fngx-sitemaps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/json-derulo%2Fngx-sitemaps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/json-derulo","download_url":"https://codeload.github.com/json-derulo/ngx-sitemaps/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/json-derulo%2Fngx-sitemaps/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262621426,"owners_count":23338661,"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":[],"created_at":"2025-06-29T15:37:57.730Z","updated_at":"2026-03-16T18:32:57.268Z","avatar_url":"https://github.com/json-derulo.png","language":"TypeScript","funding_links":[],"categories":["Architecture and Advanced Topics"],"sub_categories":["Server-Side Rendering"],"readme":"# ngx-sitemaps\n\nGenerate sitemaps from Angular prerendered routes.\n\n## Prerequisites\n\n- Your project is an Angular project\n- Your project uses SSR with static site generation (SSG)\n\n## CLI usage\n\nBefore using the CLI, make sure to build your application.\nAfterward, run the following CLI command to generate the sitemap:\n\n```\nnpx ngx-sitemaps https://your-site.com\n```\n\nTo run the script always after the build, install the package in your project\nand set up a `postbuild` script in your `package.json`:\n\n```json\n{\n\t\"scripts\": {\n\t\t\"build\": \"ng build\",\n\t\t\"postbuild\": \"ngx-sitemaps https://your-site.com\"\n\t}\n}\n```\n\n## Direct usage\n\nIf you already have a custom postbuild script, you can use the following code to generate the sitemap:\n\n```javascript\nimport { generateSitemap } from \"ngx-sitemaps\";\n\nawait generateSitemap(\"https://your-site.com\");\n```\n\n## Options\n\n| Title          | CLI usage          | Direct usage    | Description                        |\n| -------------- | ------------------ | --------------- | ---------------------------------- |\n| Project        | `--project`        | `project`       | Project name in angular.json       |\n| Trailing Slash | `--trailing-slash` | `trailingSlash` | Adds a trailing slash to all paths |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjson-derulo%2Fngx-sitemaps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjson-derulo%2Fngx-sitemaps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjson-derulo%2Fngx-sitemaps/lists"}