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

case-anything

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

case-anything - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

7

package.json
{
"name": "case-anything",
"version": "0.0.1",
"description": "camelCase, kebabCase, ... a simple integration with nano package size. (SMALL footprint!)",
"version": "0.0.2",
"description": "camelCase, kebab-case, PascalCase... a simple integration with nano package size. (SMALL footprint!)",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
"typings": "types/index.d.ts",
"scripts": {

@@ -16,3 +17,3 @@ "test": "ava",

"rollup-plugin-typescript2": "^0.24.3",
"typescript": "^3.6.3"
"typescript": "^3.6.4"
},

@@ -19,0 +20,0 @@ "repository": {

@@ -7,3 +7,3 @@ # Case anything 🐫

camelCase, kebabCase, ... a simple integration with nano package size. (SMALL footprint!)
camelCase, kebab-case, PascalCase... a simple integration with nano package size. (SMALL footprint!)

@@ -36,18 +36,18 @@ ## Motivation

camelCase('ponyta-vaporeon-poliwrath-butterfree')
camelCase(testString)
=== 'ponytaVaporeonPoliwrathButterfree'
pascalCase('ponytaVaporeonPoliwrathButterfree')
pascalCase(testString)
=== 'PonytaVaporeonPoliwrathButterfree'
kebabCase('ponytaVaporeonPoliwrathButterfree')
kebabCase(testString)
=== 'ponyta-vaporeon-poliwrath-butterfree'
snakeCase('ponytaVaporeonPoliwrathButterfree')
snakeCase(testString)
=== 'ponyta_vaporeon_poliwrath_butterfree'
constantCase('ponytaVaporeonPoliwrathButterfree')
constantCase(testString)
=== 'PONYTA_VAPOREON_POLIWRATH_BUTTERFREE'
pathCase('ponytaVaporeonPoliwrathButterfree')
pathCase(testString)
=== 'Ponyta/Vaporeon/Poliwrath/BUTTERFREE'

@@ -60,3 +60,3 @@ ```

| | case-anything | Second Header |
| | case-anything | change-case |
| --- | --- | --- |

@@ -63,0 +63,0 @@ | camelCase | 1.1K (572) | 27.2K (6K) |

@@ -1,2 +0,2 @@

import test from 'ava';
import test from 'ava'
import { camelCase, pascalCase, kebabCase, snakeCase, constantCase, pathCase } from '../dist/index.cjs'

@@ -3,0 +3,0 @@

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