lhl 6ff0e96ad3 8-4-1 | vor 1 Jahr | |
---|---|---|
.. | ||
LICENSE | vor 1 Jahr | |
README.md | vor 1 Jahr | |
header-case.d.ts | vor 1 Jahr | |
header-case.js | vor 1 Jahr | |
package.json | vor 1 Jahr |
Header case a string.
Supports Unicode (non-ASCII characters) and non-string entities, such as objects with a toString
property, numbers and booleans. Empty values (null
and undefined
) will result in an empty string.
npm install header-case --save
var headerCase = require('header-case')
headerCase('string') //=> "String"
headerCase('PascalCase') //=> "Pascal-Case"
headerCase('MY_STRING', 'tr') //=> "My-Strıng"
Includes a TypeScript definition.
MIT