Skip to main content

An implementation of a string-based NamespacedKey in the format of namespace:key

Works with
This package works with Bun
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
JSR Score
100%
Published
2 months ago (1.0.0)

NamespacedKey

An implementation of a string-based NamespacedKey in the format of namespace:key. If you've ever got into technical Minecraft, you'll be familiar with these.

Has decent test coverage.

Usage

import NamespacedKey from "@celery/namespacedkey"

const key = new NamespacedKey("namespace", "key")

console.log(key.toString()) // namespace:key

Add Package

deno add @celery/namespacedkey

Import symbol

import * as mod from "@celery/namespacedkey";

Add Package

npx jsr add @celery/namespacedkey

Import symbol

import * as mod from "@celery/namespacedkey";

Add Package

yarn dlx jsr add @celery/namespacedkey

Import symbol

import * as mod from "@celery/namespacedkey";

Add Package

pnpm dlx jsr add @celery/namespacedkey

Import symbol

import * as mod from "@celery/namespacedkey";

Add Package

bunx jsr add @celery/namespacedkey

Import symbol

import * as mod from "@celery/namespacedkey";