v1.5.1
Common utility functions used across projects
Attributes
Includes Deno configuration
Repository
Current version released
a year ago
justaos’s Utils
Common utility functions used across projects.
File Utils
import FileUtils from "https://raw.githubusercontent.com/justaos/utils/1.1.0/logger-utils/mod.ts";
const obj = FileUtils.readJsonFileSync("../test/resources/sample.json");
console.log(JSON.stringify(obj, null, 4)); // prints content of sample.json
String Utils
import CommonUtils from "https://raw.githubusercontent.com/justaos/utils/1.1.0/common-utils/mod.ts";
const temp = CommonUtils.underscoreToCamelCase("hello_world");
console.log(temp); // prints 'Hello World'