Socket
Socket
Sign inDemoInstall

@plt4rm/utils

Package Overview
Dependencies
88
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @plt4rm/utils

plt4rm Utils - common utility functions used across plt4rm projects


Version published
Maintainers
1
Created

Readme

Source

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

Keywords

FAQs

Last updated on 17 Oct 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc