New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

keys-converter

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

keys-converter

This package provide a util function to convert snake case object keys to camel case

  • 2.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
32
decreased by-40.74%
Maintainers
1
Weekly downloads
 
Created
Source

Snake Case to Camel Case

A module to convert object keys to camelcase.

npm i keys-converter or yarn add keys-converter


How to use it?

import { objectKeysToCamelCase } from "keys-converter";

The function objectKeysToCamelCase receives an object You can infer the return as argument so the result will be typed

Inference result and input

If you provide the input type, the function validate the arguments So if you provide result type the return will be typed


Warning

  • The function does not remove first underscore for safely

example If your object has an protected prop like _id It will keep it

Keywords

FAQs

Package last updated on 11 Jul 2021

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc