0.9.3 • Published 4 years ago
@plt4rm/utils v0.9.3
plt4rm's Utils
Common utility functions used across plt4rm projects.
File Utils
// Read a json file
const utils = require('@plt4rm/utils');
let obj = utils.readJsonFileSync('test/resources/sample.json');
console.log(JSON.stringify(obj)); // prints content of sample.json
// Write to a json file
utils.writeJsonFileSync('test/resources/_temp_/write.json', {title: 'Write'});
let obj = utils.readJsonFileSync('test/resources/_temp_/write.json');
console.log(JSON.stringify(obj)); // prints {title: 'Write'}
String Utils
const utils = require('@plt4rm/utils');
const temp = utils.underscoreToCamelCase('hello_world');
console.log(temp); // prints 'Hello World'
Code of Conduct
License
0.9.3
4 years ago
0.9.2
4 years ago
0.9.1
4 years ago
0.9.0
4 years ago
0.8.5
4 years ago
0.8.4
4 years ago
0.8.6
4 years ago
0.8.3
4 years ago
0.8.2
4 years ago
0.8.1
4 years ago
0.8.0
4 years ago
0.7.9
4 years ago
0.7.8
4 years ago
0.7.7
4 years ago
0.7.6
4 years ago
0.7.3
4 years ago
0.7.2
4 years ago
0.7.0
4 years ago
0.6.6
4 years ago