Skip to main content

Built and signed on GitHub Actions

🏷️ RFC 4151 Tag URI parser and generator

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
a week ago (0.1.2)
class TagUriParsingError
extends Error

Error class thrown when there is a parsing error in a tag: URI.

Instances of this class provide information about which part of the tag: URI caused the error. The where property indicates the specific component of the URI that failed validation, such as the taggingEntity, authorityName, date, or other parts defined by RFC 4151.

Constructors

new
TagUriParsingError(
where: TagUriParsingError["where"],
input: string,
)

Constructs a new TagUriParsingError.

Properties

readonly
where:
"tagUri"
| "taggingEntity"
| "authorityName"
| "date"
| "year"
| "month"
| "day"
| "dnsName"
| "dnsComp"
| "emailAddress"
| "specific"
| "fragment"

The part of the tag: URI that caused the parsing error.

Add Package

deno add jsr:@cptpiepmatz/tag-uri

Import symbol

import { TagUriParsingError } from "@cptpiepmatz/tag-uri";

---- OR ----

Import directly with a jsr specifier

import { TagUriParsingError } from "jsr:@cptpiepmatz/tag-uri";

Add Package

npx jsr add @cptpiepmatz/tag-uri

Import symbol

import { TagUriParsingError } from "@cptpiepmatz/tag-uri";

Add Package

yarn dlx jsr add @cptpiepmatz/tag-uri

Import symbol

import { TagUriParsingError } from "@cptpiepmatz/tag-uri";

Add Package

pnpm dlx jsr add @cptpiepmatz/tag-uri

Import symbol

import { TagUriParsingError } from "@cptpiepmatz/tag-uri";

Add Package

bunx jsr add @cptpiepmatz/tag-uri

Import symbol

import { TagUriParsingError } from "@cptpiepmatz/tag-uri";