vlad 6f123ff03e 18.07 | hace 6 años | |
---|---|---|
.. | ||
LICENSE | hace 6 años | |
README.md | hace 6 años | |
package.json | hace 6 años | |
param-case.d.ts | hace 6 años | |
param-case.js | hace 6 años |
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