case-anything
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15170