Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pdehaan/mozillaorg-sitemap
Check mozilla.org sitemap by locale.
https://github.com/pdehaan/mozillaorg-sitemap
Last synced: 15 days ago
JSON representation
Check mozilla.org sitemap by locale.
- Host: GitHub
- URL: https://github.com/pdehaan/mozillaorg-sitemap
- Owner: pdehaan
- Created: 2019-08-15T17:29:59.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T22:35:53.000Z (about 2 years ago)
- Last Synced: 2024-10-31T13:13:20.226Z (2 months ago)
- Language: JavaScript
- Size: 101 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mozillaorg-sitemap
## Usage
```sh
npx pdehaan/mozillaorg-sitemap [locale] [--check]
```### Parameters
- `locale`: [optional; default="en-US"] Browser locale to check. Ie: "en-US", "de", "fr".
- `--check`: [optional; default=false] Check for broken links.### Example
```sh
$ npx pdehaan/mozillaorg-sitemap en-CA{
"locale": "en-CA",
"origin": "https://www.mozilla.org",
"sitemap": [
"https://www.mozilla.org/en-CA/",
"https://www.mozilla.org/en-CA/about/",
"https://www.mozilla.org/en-CA/about/history/",
"https://www.mozilla.org/en-CA/about/manifesto/",
"https://www.mozilla.org/en-CA/about/manifesto/details/",
"https://www.mozilla.org/en-CA/contribute/",
"https://www.mozilla.org/en-CA/contribute/events/",
"https://www.mozilla.org/en-CA/contribute/stories/",
"https://www.mozilla.org/en-CA/contribute/stories/faye/",
"https://www.mozilla.org/en-CA/contribute/stories/michael/",
"https://www.mozilla.org/en-CA/contribute/stories/ruben/",
"https://www.mozilla.org/en-CA/contribute/stories/shreyas/",
"https://www.mozilla.org/en-CA/firefox/",
"https://www.mozilla.org/en-CA/firefox/accounts/",
"https://www.mozilla.org/en-CA/firefox/best-browser/",
"https://www.mozilla.org/en-CA/firefox/campaign/",
"https://www.mozilla.org/en-CA/firefox/channel/android/",
"https://www.mozilla.org/en-CA/firefox/channel/desktop/",
"https://www.mozilla.org/en-CA/firefox/channel/ios/",
"https://www.mozilla.org/en-CA/firefox/developer/",
"https://www.mozilla.org/en-CA/firefox/facebookcontainer/",
"https://www.mozilla.org/en-CA/firefox/features/",
"https://www.mozilla.org/en-CA/firefox/features/adblocker/",
"https://www.mozilla.org/en-CA/firefox/features/bookmarks/",
"https://www.mozilla.org/en-CA/firefox/features/fast/",
"https://www.mozilla.org/en-CA/firefox/features/independent/",
"https://www.mozilla.org/en-CA/firefox/features/memory/",
"https://www.mozilla.org/en-CA/firefox/features/password-manager/",
"https://www.mozilla.org/en-CA/firefox/features/private-browsing/",
"https://www.mozilla.org/en-CA/firefox/linux/",
"https://www.mozilla.org/en-CA/firefox/mac/",
"https://www.mozilla.org/en-CA/firefox/mobile/",
"https://www.mozilla.org/en-CA/firefox/new/",
"https://www.mozilla.org/en-CA/firefox/switch/",
"https://www.mozilla.org/en-CA/firefox/windows/",
"https://www.mozilla.org/en-CA/internet-health/",
"https://www.mozilla.org/en-CA/internet-health/decentralization/",
"https://www.mozilla.org/en-CA/internet-health/digital-inclusion/",
"https://www.mozilla.org/en-CA/internet-health/open-innovation/",
"https://www.mozilla.org/en-CA/internet-health/privacy-security/",
"https://www.mozilla.org/en-CA/internet-health/web-literacy/",
"https://www.mozilla.org/en-CA/mission/",
"https://www.mozilla.org/en-CA/plugincheck/",
"https://www.mozilla.org/en-CA/privacy/faq/",
"https://www.mozilla.org/en-CA/privacy/principles/",
"https://www.mozilla.org/en-CA/technology/",
"https://www.mozilla.org/en-CA/technology/browser-history/",
"https://www.mozilla.org/en-CA/technology/what-is-a-browser/"
]
}
```If you want to limit the number of sitemap results, you can set a `MAX_LINKS` environment variable.
```sh
$ MAX_LINKS=10 npx pdehaan/mozillaorg-sitemap de --check{
"locale": "de",
"origin": "https://www.mozilla.org",
"sitemap": [
"https://www.mozilla.org/de/",
"https://www.mozilla.org/de/about/",
"https://www.mozilla.org/de/about/governance/policies/participation/",
"https://www.mozilla.org/de/about/governance/policies/participation/reporting/",
"https://www.mozilla.org/de/about/history/",
"https://www.mozilla.org/de/about/legal/",
"https://www.mozilla.org/de/about/legal/acceptable-use/",
"https://www.mozilla.org/de/about/legal/impressum/",
"https://www.mozilla.org/de/about/legal/terms/firefox/",
"https://www.mozilla.org/de/about/legal/terms/mozilla/"
]
}No broken links found
```