0.9.3 • Published 5 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
5 years ago
0.9.2
5 years ago
0.9.1
5 years ago
0.9.0
5 years ago
0.8.5
5 years ago
0.8.4
5 years ago
0.8.6
5 years ago
0.8.3
5 years ago
0.8.2
5 years ago
0.8.1
5 years ago
0.8.0
5 years ago
0.7.9
5 years ago
0.7.8
5 years ago
0.7.7
5 years ago
0.7.6
5 years ago
0.7.3
5 years ago
0.7.2
5 years ago
0.7.0
5 years ago
0.6.6
5 years ago