v1.1.0
deno module, a collection of string util under dallmo-util
Attributes
Includes Deno configuration
Repository
Current version released
2 years ago
@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 both deno land and jsr ;
list of methods
- case_title
- case_lower
- case_upper
- head
- tail
usage
1. running on deno, import via deno module
- nothing to add via CLI.
- create
test-via-deno-modules.ts;
// this assumes the latest version
import * as dallmo_util_string from "https://deno.land/x/dallmo_util_string/mod.ts";
const input_string: string = "abcde";
console.log( "case title : ", dallmo_util_string.case_title( input_string ));- run the test file
deno run test-via-deno-modules.ts2. running on deno, import via jsr
- in CLI, add the module with :
deno add @dallmo/util-string- create
test-via-jsr.ts;
import * as dallmo_util_string from "@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.tstest
to run test codes :
- switch to the project root folder, i.e.
[root]/; - run deno task scripts :
- to test with dependencies via deno modules :
- run
deno task test-deno;
- run
- to test with dependencies via jsr :
- run
deno task test-jsr;
- run