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.name

Directive name.

The Renderer.render() method uses this value to determine whether Directive.execute() should be called for the processed node.

The name should be prefixed to avoid conflicts with regular attribute names and must be unique among other Renderer.directives. Renderer.load() will use this value to check whether the directive is already loaded.

If the directive name is dynamic, a RegExp may be used instead of a string. In this case, Directive.prefix should be specified.

const foo = {
  name: "*foo",
  phase: Phase.UNKNOWN,
} as Directive & { name: 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";