@dallmo/util-string@1.4.0Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
deno module, a collection of string util under dallmo-util
This package works with Node.js, DenoIt is unknown whether this package works with Cloudflare Workers, Bun, Browsers




JSR Score
100%
Published
a month ago (1.4.0)
@dallmo/util-string
overview
- a collection of string util under dallmo-util, published as deno module.
- re-written in typescript, migrated from nodejs to base only on deno standard libraries ;
- published on jsr ( no further updates will be made for the version on deno land );
list of methods
- case_title
- case_lower
- case_upper
- head
- tail
- random
usage
- create
test-via-jsr.ts
with these contents :
import * as dallmo_util_string from "jsr:@dallmo/util-string"; const input_string: string = "abcde"; console.log( "case title : ", dallmo_util_string.case_title( input_string ));
- 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-string
Import symbol
import * as util_string from "@dallmo/util-string";
Import directly with a jsr specifier
import * as util_string from "jsr:@dallmo/util-string";
Add Package
pnpm i jsr:@dallmo/util-string
pnpm dlx jsr add @dallmo/util-string
Import symbol
import * as util_string from "@dallmo/util-string";
Add Package
yarn add jsr:@dallmo/util-string
yarn dlx jsr add @dallmo/util-string
Import symbol
import * as util_string from "@dallmo/util-string";
Add Package
vlt install jsr:@dallmo/util-string
Import symbol
import * as util_string from "@dallmo/util-string";
Add Package
npx jsr add @dallmo/util-string
Import symbol
import * as util_string from "@dallmo/util-string";
Add Package
bunx jsr add @dallmo/util-string
Import symbol
import * as util_string from "@dallmo/util-string";