shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
namespaceCompliant
Type:Function
Status:beta
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.string
This function take a string and return a version of it that you can safely use as a namespace with just dots and non special characters.
Params
- string*-String
The string to process
Return
- -String
The processed string
Example
import { namespaceCompliant } from '@blackbyte/sugar/string';
namespaceCompliant('Hello world'); // => hello-worldTodo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space