1.2.3
Common utility functions used across projects
Repository
Current version released
2 years 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'