3.1.2 • Published 1 year ago

pascal-case v3.1.2

Weekly downloads
7,947,839
License
MIT
Repository
github
Last release
1 year ago

Pascal Case

NPM version NPM downloads Bundle size

Transform into a string of capitalized words without separators.

Installation

npm install pascal-case --save

Usage

import { pascalCase } from "pascal-case";

pascalCase("string"); //=> "String"
pascalCase("dot.case"); //=> "DotCase"
pascalCase("PascalCase"); //=> "PascalCase"
pascalCase("version 1.2.10"); //=> "Version_1_2_10"

The function also accepts options.

Merge Numbers

If you'd like to remove the behavior prefixing _ before numbers, you can use pascalCaseTransformMerge:

import { pascalCaseTransformMerge } from "pascal-case";

pascalCase("version 12", { transform: pascalCaseTransformMerge }); //=> "Version12"

License

MIT

camel-casechange-case@iharob/graphql-mesh-cli@ticruz38/graphql-codegen-svelte-apollo@httptoolkit/win-detect-browserstradesafe-sdkgenerator-wgoehrig-test@jakeblaxon-graphql-mesh/grpc@jakeblaxon-graphql-mesh/json-schema@jakeblaxon-graphql-mesh/mysql@jakeblaxon-graphql-mesh/odata@mygooder/react-scripts@iharob/graphql-mesh-odata@iharob/graphql-mesh-grpc@iharob/graphql-mesh-json-schema@iharob/graphql-mesh-mysqleslint-plugin-mattgatsby-source-prismic-api@linear/codegen-docgenerator-test-connectorgenerator-test2-connector2generator-test3-connector3test2-generator-connector@beatjs/create-react-native-module@justlee0606/gatsby-plugin-local-searchgraphql-codegen-sveltegenerator-express-microservicegql_din_mod@webtides/luna-cli@weiran.zsd/tsdx@wizeline/serverless-amplify-plugin@webtides/luna-js@wq/react@zeromus/core@zeromus/gen@zionappsupport/core@zhangqc/loader-yapi@zhangqc/moon-core@zhangqc/plugin-swagger-mock@zhangqc/plugin-transfrom-json-from-yapi@zhangqc/plugin-transfrom-ts-to-js@zalishchuk/create-react-component@xformily/react-schema-renderer@xswap/token-listselenextaws-organization-formationaws-apig-responsesbemjson-to-jsxbeyoidljoilessjoyent-ui-toolkitjoyent-breakpointsjoyent-navigationjalfrezijaimanjacksonk-react-cmjson-schema-java-mapper-utilskoalimessaging-api-commonorientxpackage-scriptsng2-reformsnggnode-cassettereact-generatorsreact-native-upgrade-libreact-native-module-initreact-native-create-appreact-native-create-libreact-native-create-libraryreact-native-create-library-evsreact-native-create-library-fullreact-scenereact-undrawrelution-cliresponsive-react-appreact-to-typescript-definitionsreiconifyrektremax-vant-clipatternplate-serverpatternplate-transform-reactpkgerpgtyped-cli-2pixiu-swap-corepixiuswap-libs-sdkqa_hddqnamakerreact-apollo-local-valuesraml-typescript-generatorraml2code-groovy-pojoraml2code-jaxrs-interfacesraml2code-retrofitraml2code-retrofit-samskiterraml2code-utilsraml2code-utils-samskiterraml-javascript-generatorraml-php-generator
3.1.2

1 year ago

3.1.1

2 years ago

3.1.0

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

2.0.1

5 years ago

2.0.0

6 years ago

1.1.2

6 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago