Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
📖 Shared constants scrolls.
This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
JSR Score
100%
Published
a day ago (0.1.0)
📖 Shared constants scrolls.
Constants
EMPTY_ARRAY
: Empty read-only array. The array is read-only in runtime byObject.freeze
, so trying to do mutations will throw.EMPTY_OBJECT
: Empty read-onlynull
prototype object. The object is read-only in runtime byObject.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); // ""
Other links
Built and signed on
View transparency logGitHub Actions
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";