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

  1. string*-String

    The string to process

Return

  1. -String

    The processed string

Example

import { namespaceCompliant } from '@blackbyte/sugar/string';
namespaceCompliant('Hello world'); // => hello-world

Todo

  • testsnormal