0.9.3 • Published 4 years ago

@plt4rm/utils v0.9.3

Weekly downloads
20
License
Apache-2.0
Repository
github
Last release
4 years ago

plt4rm's Utils

Common utility functions used across plt4rm projects.

Version Build Coverage Status CodeFactor

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

Contributor Covenant

License

Apache License 2.0

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