{"id":15413458,"url":"https://github.com/wooorm/web-namespaces","last_synced_at":"2025-04-19T11:39:29.831Z","repository":{"id":60775441,"uuid":"54260120","full_name":"wooorm/web-namespaces","owner":"wooorm","description":"Map of web namespaces","archived":false,"fork":false,"pushed_at":"2023-11-01T10:38:07.000Z","size":63,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-08T17:46:13.283Z","etag":null,"topics":["html","namespaces","web"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/wooorm.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":"funding.yml","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},"funding":{"github":"wooorm"}},"created_at":"2016-03-19T10:26:39.000Z","updated_at":"2024-01-12T18:07:39.000Z","dependencies_parsed_at":"2024-06-18T18:38:10.851Z","dependency_job_id":"4bc6bcf1-01a9-475e-ac9c-27287b71dbd6","html_url":"https://github.com/wooorm/web-namespaces","commit_stats":{"total_commits":62,"total_committers":2,"mean_commits":31.0,"dds":"0.016129032258064502","last_synced_commit":"c64a7c85483df0b2cc94b0b02dc45316f8978d78"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fweb-namespaces","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fweb-namespaces/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fweb-namespaces/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fweb-namespaces/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wooorm","download_url":"https://codeload.github.com/wooorm/web-namespaces/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234300358,"owners_count":18810608,"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":["html","namespaces","web"],"created_at":"2024-10-01T16:57:10.663Z","updated_at":"2025-01-17T01:57:32.678Z","avatar_url":"https://github.com/wooorm.png","language":"JavaScript","readme":"# web-namespaces\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Size][size-badge]][size]\n\nMap of web namespaces.\n\n## Contents\n\n*   [What is this?](#what-is-this)\n*   [When should I use this?](#when-should-i-use-this)\n*   [Install](#install)\n*   [Use](#use)\n*   [API](#api)\n    *   [`webNamespaces`](#webnamespaces)\n*   [Types](#types)\n*   [Compatibility](#compatibility)\n*   [Security](#security)\n*   [Related](#related)\n*   [Contribute](#contribute)\n*   [License](#license)\n\n## What is this?\n\nThis is a map of names to namespaces found on the web platforms.\n\n## When should I use this?\n\nYou can use this package if you want to access the XML, HTML, SVG, etc.\nnamespace urls.\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 14.14+, 16.0+), install with [npm][]:\n\n```sh\nnpm install web-namespaces\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport {webNamespaces} from 'https://esm.sh/web-namespaces@2'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n\u003cscript type=\"module\"\u003e\n  import {webNamespaces} from 'https://esm.sh/web-namespaces@2?bundle'\n\u003c/script\u003e\n```\n\n## Use\n\n```js\nimport {webNamespaces} from 'web-namespaces'\n\nconsole.log(webNamespaces)\n```\n\nYields:\n\n```js\n{\n  html: 'http://www.w3.org/1999/xhtml',\n  mathml: 'http://www.w3.org/1998/Math/MathML',\n  svg: 'http://www.w3.org/2000/svg',\n  xlink: 'http://www.w3.org/1999/xlink',\n  xml: 'http://www.w3.org/XML/1998/namespace',\n  xmlns: 'http://www.w3.org/2000/xmlns/'\n}\n```\n\n## API\n\nThis package exports the identifier `webNamespaces`.\nThere is no default export.\n\n### `webNamespaces`\n\nMap of names to namespaces (`Record\u003cstring, string\u003e`).\n\n## Types\n\nThis package is fully typed with [TypeScript][].\nIt exports no additional types.\n\n## Compatibility\n\nThis package is at least compatible with all maintained versions of Node.js.\nAs of now, that is Node.js 14.14+ and 16.0+.\nIt also works in Deno and modern browsers.\n\n## Security\n\nThis package is safe.\n\n## Related\n\n*   [`wooorm/html-tag-names`](https://github.com/wooorm/html-tag-names)\n    — list of HTML tag names\n*   [`wooorm/mathml-tag-names`](https://github.com/wooorm/mathml-tag-names)\n    — list of MathML tag names\n*   [`wooorm/svg-tag-names`](https://github.com/wooorm/svg-tag-names)\n    — list of SVG tag names\n*   [`wooorm/svg-element-attributes`](https://github.com/wooorm/svg-element-attributes)\n    — map of SVG elements to allowed attributes\n*   [`wooorm/html-element-attributes`](https://github.com/wooorm/html-element-attributes)\n    — map of HTML elements to allowed attributes\n*   [`wooorm/aria-attributes`](https://github.com/wooorm/aria-attributes)\n    — list of ARIA attributes\n\n## Contribute\n\nYes please!\nSee [How to Contribute to Open Source][contribute].\n\n## License\n\n[MIT][license] © [Titus Wormer][author]\n\n\u003c!-- Definition --\u003e\n\n[build-badge]: https://github.com/wooorm/web-namespaces/workflows/main/badge.svg\n\n[build]: https://github.com/wooorm/web-namespaces/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/web-namespaces.svg\n\n[coverage]: https://codecov.io/github/wooorm/web-namespaces\n\n[downloads-badge]: https://img.shields.io/npm/dm/web-namespaces.svg\n\n[downloads]: https://www.npmjs.com/package/web-namespaces\n\n[size-badge]: https://img.shields.io/bundlephobia/minzip/web-namespaces.svg\n\n[size]: https://bundlephobia.com/result?p=web-namespaces\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[esmsh]: https://esm.sh\n\n[license]: license\n\n[author]: https://wooorm.com\n\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[typescript]: https://www.typescriptlang.org\n\n[contribute]: https://opensource.guide/how-to-contribute/\n","funding_links":["https://github.com/sponsors/wooorm"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwooorm%2Fweb-namespaces","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwooorm%2Fweb-namespaces","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwooorm%2Fweb-namespaces/lists"}