Skip to main content

JUSTAOS’s Utils

Common utility functions used across projects.

GitHub release (with filter) Build Coverage License

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

Code of Conduct

Contributor Covenant