JSPM

casing-converter

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q43881F
  • License ISC

casing-converter converts to required casings when provide a string.

Package Exports

  • casing-converter

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (casing-converter) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

casing-converter

Transform strings to camelCase, PascalCase, snake_case and Kebab-case.

Installation

$ npm install casing-converter

Usage

'use strict';
const { toCamelCase, toPascalCase, toSnakeCase, toKebabCase } = require("casing-converter");


console.log(toCamelCase("My-name_is=satya+sandeep"));
console.log(toPascalCase("My-name_is=satya+sandeep"));
console.log(toSnakeCase("My-name_is=satya+sandeep"));
console.log(toKebabCase("My-name_is=satya+sandeep"));

/** 
 * Output :
 * 
 * myNameIsSatyaSandeep
 * MyNameIsSatyaSandeep
 * My_name_is_satya_sandeep
 * My-name-is-satya-sandeep
 * 
*/

License

ISC