mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-01 01:38:07 +08:00
R=jacktfranklin@chromium.org Bug: 1213034 Change-Id: I5da8225f60b53870a1c67d6b5d02a464c08f4eb2 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2917088 Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org> Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
No Case
Transform a string to lower space cased. Optional locale and replacement character supported.
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.
Installation
npm install no-case --save
Usage
var noCase = require('no-case')
noCase(null) //=> ""
noCase('string') //=> "string"
noCase('dot.case') //=> "dot case"
noCase('camelCase') //=> "camel case"
noCase('Beyoncé Knowles') //=> "beyoncé knowles"
noCase('A STRING', 'tr') //=> "a strıng"
noCase('HELLO WORLD!', null, '_') //=> "hello_world"
Typings
Includes a TypeScript definition.
License
MIT