v1.10.0
Common utility functions used across projects
Attributes
Includes Deno configuration
Repository
Current version released
9 months ago
Dependencies
JUSTAOS’s Utils
Common utility functions used across projects.
File Utils
import {FileUtils} from "https://deno.land/x/justaos_utils@v1.5.1/mod.ts";
const obj = FileUtils.readJsonFileSync("./sample.json");
console.log(JSON.stringify(obj, null, 4)); // prints content of sample.json
String Utils
import {CommonUtils} from "https://deno.land/x/justaos_utils@v1.5.1/mod.ts";
const temp = CommonUtils.underscoreToCamelCase("hello_world");
console.log(temp); // prints 'Hello World'
Date Utils
import {DateUtils} from "https://deno.land/x/justaos_utils@v1.5.1/mod.ts";
const isIso = DateUtils.isIsoDate("2022-12-27T07:40:25.551Z");
console.log(isIso); // prints true