test-via-deno-modules.ts
;import * as dallmo_util from "https://deno.land/x/dallmo_util@v1.0.0/mod.ts"; // 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 ) );
deno run test-via-deno-modules.ts
deno add @dallmo/util
test-via-jsr.ts
;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 ) );
deno run test-via-jsr.ts
to run test codes :
[root]/
;deno task test-deno
;deno task test-jsr
;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
npx jsr add @dallmo/util
Import symbol
import * as util from "@dallmo/util";
Add Package
yarn dlx jsr add @dallmo/util
Import symbol
import * as util from "@dallmo/util";
Add Package
pnpm dlx 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";