{"id":15413509,"url":"https://github.com/wooorm/link-rel","last_synced_at":"2025-04-19T11:55:33.233Z","repository":{"id":62354814,"uuid":"55539979","full_name":"wooorm/link-rel","owner":"wooorm","description":"List of valid values for `rel` on `\u003clink\u003e`","archived":false,"fork":false,"pushed_at":"2022-11-13T13:46:36.000Z","size":63,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T07:33:47.080Z","etag":null,"topics":["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-04-05T19:40:05.000Z","updated_at":"2023-09-08T17:08:54.000Z","dependencies_parsed_at":"2022-10-31T10:48:34.495Z","dependency_job_id":null,"html_url":"https://github.com/wooorm/link-rel","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Flink-rel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Flink-rel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Flink-rel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Flink-rel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wooorm","download_url":"https://codeload.github.com/wooorm/link-rel/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248654095,"owners_count":21140236,"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","link","rel","relation"],"created_at":"2024-10-01T16:57:27.970Z","updated_at":"2025-04-19T11:55:33.216Z","avatar_url":"https://github.com/wooorm.png","language":"JavaScript","funding_links":["https://github.com/sponsors/wooorm"],"categories":[],"sub_categories":[],"readme":"# link-rel\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Size][size-badge]][size]\n\nList of valid values for `rel` on `\u003clink\u003e`.\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    *   [`linkRel`](#linkrel)\n*   [Types](#types)\n*   [Compatibility](#compatibility)\n*   [Contribute](#contribute)\n*   [Security](#security)\n*   [License](#license)\n\n## What is this?\n\nThis package is a list of specified and common values of `rel` attributes on\n`link` elements.\nThe list comes from the [HTML spec][spec] and [MicroFormats][extensions].\n\n## When should I use this?\n\nYou can use this package to check if a certain value is valid value of a `rel`\nattribute on a `link` element.\nAlternatively, you can use [`html-link-types`][html-link-types] for just the\nspecced values.\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 link-rel\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport {linkRel} from 'https://esm.sh/link-rel@2'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n\u003cscript type=\"module\"\u003e\n  import {linkRel} from 'https://esm.sh/link-rel@2?bundle'\n\u003c/script\u003e\n```\n\n## Use\n\n```js\nimport {linkRel} from 'link-rel'\n\nconsole.log(linkRel.length) //=\u003e 112\n\nconsole.log(linkRel.slice(0, 10))\n```\n\nYields:\n\n```js\n[\n  'DCTERMS.conformsTo',\n  'DCTERMS.contributor',\n  'DCTERMS.creator',\n  'DCTERMS.description',\n  'DCTERMS.hasFormat',\n  'DCTERMS.hasPart',\n  'DCTERMS.hasVersion',\n  'DCTERMS.isFormatOf',\n  'DCTERMS.isPartOf',\n  'DCTERMS.isReferencedBy'\n]\n```\n\n## API\n\nThis package exports the identifier `linkRel`.\nThere is no default export.\n\n### `linkRel`\n\nList of valid values for `rel` on `\u003clink\u003e` (`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## Contribute\n\nYes please!\nSee [How to Contribute to Open Source][contribute].\n\n## Security\n\nThis package is safe.\n\n## License\n\n[MIT][license] © [Titus Wormer][author]\n\n\u003c!-- Definition --\u003e\n\n[build-badge]: https://github.com/wooorm/link-rel/workflows/main/badge.svg\n\n[build]: https://github.com/wooorm/link-rel/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/link-rel.svg\n\n[coverage]: https://codecov.io/github/wooorm/link-rel\n\n[downloads-badge]: https://img.shields.io/npm/dm/link-rel.svg\n\n[downloads]: https://www.npmjs.com/package/link-rel\n\n[size-badge]: https://img.shields.io/bundlephobia/minzip/link-rel.svg\n\n[size]: https://bundlephobia.com/result?p=link-rel\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[esmsh]: https://esm.sh\n\n[typescript]: https://www.typescriptlang.org\n\n[contribute]: https://opensource.guide/how-to-contribute/\n\n[license]: license\n\n[author]: https://wooorm.com\n\n[spec]: https://html.spec.whatwg.org/multipage/links.html#linkTypes\n\n[extensions]: http://microformats.org/wiki/existing-rel-values#HTML5_link_type_extensions\n\n[html-link-types]: https://github.com/wooorm/html-link-types\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwooorm%2Flink-rel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwooorm%2Flink-rel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwooorm%2Flink-rel/lists"}