shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
toString
Type:Function
Status:stable
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.string
Convert passed value to a string
Params
- value*-Mixed
The value to convert to string
- settings{}Object
An object of settings to configure your toString process:
Return
- -String
The resulting string
Example
import { toString } from '@blackbyte/sugar/string'
toString({
id:'hello'
}) // '{"id":"hello"}'Settings
- beautifytrueBoolean
Specify if you want to beautify the output like objects, arrays, etc…
- verbosetrueBoolean
Specify if you want to output verbose information like stack trace, etc…
Todo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space