Skip to main content

Built and signed on GitHub Actions

🦮 Internal components for mizu.js

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.7.1)
property Directive.prefix

Directive prefix.

It is used as a hint for Renderer.parseAttribute() to strip prefix from Attr.name when parsing the directive.

If Directive.name is a RegExp, this property shoud be specified.

const foo = {
  name: /^~(?<bar>)/,
  prefix: "~",
  phase: Phase.UNKNOWN,
} as Directive & { name: RegExp, prefix: string }

Type

Add Package

deno add jsr:@mizu/internal

Import symbol

import { type Directive } from "@mizu/internal/engine";

---- OR ----

Import directly with a jsr specifier

import { type Directive } from "jsr:@mizu/internal/engine";

Add Package

npx jsr add @mizu/internal

Import symbol

import { type Directive } from "@mizu/internal/engine";

Add Package

yarn dlx jsr add @mizu/internal

Import symbol

import { type Directive } from "@mizu/internal/engine";

Add Package

pnpm dlx jsr add @mizu/internal

Import symbol

import { type Directive } from "@mizu/internal/engine";

Add Package

bunx jsr add @mizu/internal

Import symbol

import { type Directive } from "@mizu/internal/engine";