Skip to main content
Home

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
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 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

  1. 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 ));
  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

New Ticket: 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-string

Import symbol

import * as util_string from "@dallmo/util-string";
or

Import directly with a jsr specifier

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

Add Package

pnpm i jsr:@dallmo/util-string
or (using pnpm 10.8 or older)
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
or (using Yarn 4.8 or older)
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";