{"id":15413511,"url":"https://github.com/wooorm/html-link-types","last_synced_at":"2025-04-19T11:53:26.265Z","repository":{"id":57267480,"uuid":"52514359","full_name":"wooorm/html-link-types","owner":"wooorm","description":"List of link types as specified by HTML","archived":false,"fork":false,"pushed_at":"2022-11-16T15:15:40.000Z","size":61,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-14T13:10:51.145Z","etag":null,"topics":["a","area","html","link","rel","relation"],"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},"funding":{"github":"wooorm"}},"created_at":"2016-02-25T09:54:03.000Z","updated_at":"2023-09-08T17:07:26.000Z","dependencies_parsed_at":"2023-01-22T07:02:36.197Z","dependency_job_id":null,"html_url":"https://github.com/wooorm/html-link-types","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fhtml-link-types","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fhtml-link-types/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fhtml-link-types/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fhtml-link-types/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wooorm","download_url":"https://codeload.github.com/wooorm/html-link-types/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249688908,"owners_count":21311306,"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":["a","area","html","link","rel","relation"],"created_at":"2024-10-01T16:57:28.450Z","updated_at":"2025-04-19T11:53:26.248Z","avatar_url":"https://github.com/wooorm.png","language":"JavaScript","readme":"# html-link-types\n\n[![Build][build-badge]][build]\n[![Downloads][downloads-badge]][downloads]\n[![Size][size-badge]][size]\n\nList of link types as specified by HTML.\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    *   [`htmlLinkTypes`](#htmllinktypes)\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 package lists values that are allowed in `rel` attributes on `\u003ca\u003e`,\n`\u003carea\u003e`, `\u003cform\u003e`, or `\u003clink\u003e` elements.\nThese values come from [mdn][].\n\n## When should I use this?\n\nUse this package if you specifically need to check which values are allowed in\nby the HTML spec in `rel` attributes on `\u003ca\u003e`, `\u003carea\u003e`, `\u003cform\u003e`, and `\u003clink\u003e`\nelements.\nSee [`link-rel`][link-rel] for a list of MicroFormats extensions to `\u003clink\u003e`,\nand [`a-rel`][a-rel] for a list of MicroFormats extensions on `\u003ca\u003e` and\n`\u003carea\u003e` elements.\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 html-link-types\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport {htmlLinkTypes} from 'https://esm.sh/html-link-types@2'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n\u003cscript type=\"module\"\u003e\n  import {htmlLinkTypes} from 'https://esm.sh/html-link-types@2?bundle'\n\u003c/script\u003e\n```\n\n## Use\n\n```js\nimport {htmlLinkTypes} from 'html-link-types'\n\nconsole.log(htmlLinkTypes)\n```\n\nYields:\n\n```js\n[ 'alternate',\n  'archives',\n  'author',\n  // …\n  'stylesheet',\n  'tag',\n  'up' ]\n```\n\n## API\n\nThis package exports the identifier `htmlLinkTypes`.\nThere is no default export.\n\n### `htmlLinkTypes`\n\nList of lowercase types (`Array\u003cstring\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/a-rel`][a-rel]\n    — list of link types for `rel` on `a` and `area`\n*   [`wooorm/aria-attributes`](https://github.com/wooorm/aria-attributes)\n    — list of ARIA attributes\n*   [`wooorm/html-dangerous-encodings`](https://github.com/wooorm/html-dangerous-encodings)\n    — list of dangerous HTML character encoding labels\n*   [`wooorm/html-encodings`](https://github.com/wooorm/html-encodings)\n    — list of HTML character encoding labels\n*   [`wooorm/link-rel`][link-rel]\n    — list of link types for `rel` on `link`\n*   [`wooorm/meta-name`](https://github.com/wooorm/meta-name)\n    — list of values for `name` on `meta`\n*   [`wooorm/web-namespaces`](https://github.com/wooorm/web-namespaces)\n    — map of web namespaces\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/html-link-types/workflows/main/badge.svg\n\n[build]: https://github.com/wooorm/html-link-types/actions\n\n[downloads-badge]: https://img.shields.io/npm/dm/html-link-types.svg\n\n[downloads]: https://www.npmjs.com/package/html-link-types\n\n[size-badge]: https://img.shields.io/bundlephobia/minzip/html-link-types.svg\n\n[size]: https://bundlephobia.com/result?p=html-link-types\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\n[mdn]: https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types\n\n[link-rel]: https://github.com/wooorm/link-rel\n\n[a-rel]: https://github.com/wooorm/a-rel\n","funding_links":["https://github.com/sponsors/wooorm"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwooorm%2Fhtml-link-types","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwooorm%2Fhtml-link-types","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwooorm%2Fhtml-link-types/lists"}