Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
latest
dallmo/deno-dallmo-utilWorks with
•JSR Score76%•This package works with Node.js, DenoIt is unknown whether this package works with Cloudflare Workers, Bun, Browsers




Downloads96/wk
•Published7 months ago (1.3.0)
a collection of deno util modules in various categories
@dallmo/util
overview
list of submodules
- array
- github
- math
- string
- yaml
usage
- create
test-via-jsr.tswith 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 ) );
- run the test file
deno run test-via-jsr.ts
test
to run test codes :
- switch to the project root folder, i.e.
[root]/; - run deno task scripts :
- to test the local files :
- run
deno task test;
- run
- to test with dependencies via jsr :
- run
deno task test-jsr;
- run
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
Add Package
deno add jsr:@dallmo/util
Import symbol
import * as util from "@dallmo/util";
Import directly with a jsr specifier
import * as util from "jsr:@dallmo/util";
Add Package
pnpm i jsr:@dallmo/util
pnpm dlx jsr add @dallmo/util
Import symbol
import * as util from "@dallmo/util";
Add Package
yarn add jsr:@dallmo/util
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";