Skip to main content

Built and signed on GitHub Actions

📖 Shared constants scrolls.

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 day ago (0.1.0)
Coven Engineering Constants logo

JSR JSR Score

📖 Shared constants scrolls.

Constants

  • EMPTY_ARRAY: Empty read-only array. The array is read-only in runtime by Object.freeze, so trying to do mutations will throw.
  • EMPTY_OBJECT: Empty read-only null prototype object. The object is read-only in runtime by Object.freeze, so trying to do mutations will throw.
  • EMPTY_STRING: Empty string. This one exists to have something more readable than "".

Example

import { EMPTY_ARRAY, EMPTY_OBJECT, EMPTY_STRING } from "@coven/constants";

console.log(EMPTY_ARRAY); // []
console.log(EMPTY_OBJECT); // {}
console.log(EMPTY_STRING); // ""
Built and signed on
GitHub Actions
View transparency log

Add Package

deno add jsr:@coven/constants

Import symbol

import * as mod from "@coven/constants";

---- OR ----

Import directly with a jsr specifier

import * as mod from "jsr:@coven/constants";

Add Package

npx jsr add @coven/constants

Import symbol

import * as mod from "@coven/constants";

Add Package

yarn dlx jsr add @coven/constants

Import symbol

import * as mod from "@coven/constants";

Add Package

pnpm dlx jsr add @coven/constants

Import symbol

import * as mod from "@coven/constants";

Add Package

bunx jsr add @coven/constants

Import symbol

import * as mod from "@coven/constants";