Socket
Socket
Sign inDemoInstall

babel-camelize

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    babel-camelize

Camelize compatible with babel ES7


Version published
Weekly downloads
70
decreased by-17.65%
Maintainers
1
Install size
4.28 kB
Created
Weekly downloads
 

Readme

Source

Build Status

Overview :

It replaces 2 characters (the first is ., - or __ ) to ONE letter which is the second letter but CAPITAL.

Examples

   "entity_name" => "entityName"
   "entity.name" => "entityName"
   "entity-name" => "entityName"    
   {first_name:"Abdou", last_name:"TM"} => {firstName: "Abdou", lastName:"TM"}  

It is compatible with Babel projects (ES7, React.JS,...)

Example :

import Camelize, {CamelCase} from 'babel-camelize';
//----then---
CamelCase("first_name") //  "firstName"
Camelize({first_name:"A", last_name:"T"}) // {firstName: "A", lastName:"T"}

Inspiration:

This package has been implemented & inspiring from @camelize package.

License :

MIT

Keywords

FAQs

Last updated on 21 Nov 2016

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