Skip to main content
Home

Built and signed on GitHub Actions

Works with
This package works with Node.js, DenoIt is unknown whether this package works with Cloudflare Workers, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score76%
Downloads96/wk
Published7 months ago (1.3.0)

a collection of deno util modules in various categories

@dallmo/util

overview

  • a collection of deno util modules in various categories ;
  • published on both deno land and jsr ;

list of submodules

  • array
  • github
  • math
  • string
  • yaml

usage

  1. create test-via-jsr.ts with these contents :
import * as dallmo_util from "jsr:@dallmo/util";

// test the math child module
const min: number = 2;
const max: number = 100;
console.log( "random integer : ", dallmo_util.math.random_integer( min, max ) );

// test the array child module
const test_array: any[] = ["123","abc", 456, "何ですか"];
console.log( "random_item : ", dallmo_util.array.random_item( test_array ) );
  1. run the test file
deno run test-via-jsr.ts

test

to run test codes :

  1. switch to the project root folder, i.e. [root]/ ;
  2. run deno task scripts :
  • to test the local files :
    • run deno task test ;
  • to test with dependencies via jsr :
    • run deno task test-jsr ;

notes on "import / deno add"

in the sample code above, the module is imported via :

import { [method name] } from "jsr:@[module name]";

in case the import is done with this instead :

import { [method name] } from "@[module name]";

i.e. without the "jsr:" prefix, then the module has to be added with this command in CLI :

deno add jsr:@[module name]

if the module has been manually added in the CLI, import with the "jsr:" prefix inside the app is also ok.

updates have therefore been made to add the "jsr:" prefix to both the sample codes above and the test file test-via-jsr.ts for simple copy-n-paste.

updates

2025-06-11

  • remove custom steps in github workflow which make changes to etc/deps.ts ;
  • archived deno.land related files and focus only on jsr ;
  • add notes above on the usage of "jsr:" prefix ;
Built and signed on
GitHub Actions

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@dallmo/util

Import symbol

import * as util from "@dallmo/util";
or

Import directly with a jsr specifier

import * as util from "jsr:@dallmo/util";

Add Package

pnpm i jsr:@dallmo/util
or (using pnpm 10.8 or older)
pnpm dlx jsr add @dallmo/util

Import symbol

import * as util from "@dallmo/util";

Add Package

yarn add jsr:@dallmo/util
or (using Yarn 4.8 or older)
yarn dlx jsr add @dallmo/util

Import symbol

import * as util from "@dallmo/util";

Add Package

vlt install jsr:@dallmo/util

Import symbol

import * as util from "@dallmo/util";

Add Package

npx jsr add @dallmo/util

Import symbol

import * as util from "@dallmo/util";

Add Package

bunx jsr add @dallmo/util

Import symbol

import * as util from "@dallmo/util";