![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | LICENSE | 9 years ago | 1.1K | |
![]() | README.md | 9 years ago | 1.3K | d768d73 docs [كارل مبارك] |
![]() | package.json | 2 years ago | 1.7K | 3e510ca test new git [كارل مبارك] |
![]() | param-case.d.ts | 9 years ago | 90 | |
![]() | param-case.js | 9 years ago | 225 |
Param 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 param-case --save
var paramCase = require('param-case')
paramCase('string') //=> "string"
paramCase('camelCase') //=> "camel-case"
paramCase('sentence case') //=> "sentence-case"
paramCase('MY STRING', 'tr') //=> "my-strıng"
Includes a TypeScript definition.
MIT