time-to-botec/js/node_modules/@stdlib/string/snakecase/docs/repl.txt

24 lines
394 B
Plaintext
Raw Normal View History

{{alias}}( str )
Converts a string to snake case.
Parameters
----------
str: string
Input string.
Returns
-------
out: string
Snake-cased string.
Examples
--------
> var out = {{alias}}( 'Hello World!' )
'hello_world'
> out = {{alias}}( 'I am a tiny little teapot' )
'i_am_a_tiny_little_teapot'
See Also
--------