Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@magic/cases

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@magic/cases

convert between camelCase, PascalCase, snake_case, and kebab-case.

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
276
decreased by-34.6%
Maintainers
2
Weekly downloads
 
Created
Source

@magic/cases

convert between camelCase, PascalCase, snake_case, and kebab-case.

html-docs

NPM version Linux Build Status Windows Build Status Coverage Status Greenkeeper badge Known Vulnerabilities

install

be in a nodejs project.

npm i --save-dev @magic/cases

usage

import cases from '@magic/cases'

const string = 'some-case-string'

const camelized = cases.camel('some-case-string')  // someCaseString

const snaked = cases.snake('some-case-string')  // some_case_string

const pascaled = cases.pascal('some-case-string') // SomeCaseString

const kebabed = cases.kebab('some-case-string')  // some-case-string

console.log({ camelized, snaked, pascaled, kebabed })
changelog
0.0.1

first commit, four case types work.

0.0.2 - unreleased

...

Keywords

FAQs

Package last updated on 02 Jan 2020

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