This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
pascal-case with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
Pascal case a string. Explicitly adds a single underscore between groups of numbers to keep readability (E.g.
Supports Unicode (non-ASCII characters) and non-string entities, such as objects with a
toString property, numbers and booleans. Empty values (
undefined) will result in an empty string.
npm install pascal-case --save
var pascalCase = require('pascal-case') pascalCase('string') //=> "String" pascalCase('camelCase') //=> "CamelCase" pascalCase('sentence case') //=> "SentenceCase" pascalCase('MY STRING', 'tr') //=> "MyStrıng"
Includes a TypeScript definition.