|
||
---|---|---|
.. | ||
bin | ||
docs | ||
etc | ||
lib | ||
package.json | ||
README.md |
lowercase
Convert a string to lowercase.
Usage
var lowercase = require( '@stdlib/string/lowercase' );
lowercase( str )
Converts a string
to lowercase.
var str = lowercase( 'bEEp' );
// returns 'beep'
Examples
var lowercase = require( '@stdlib/string/lowercase' );
var str;
str = lowercase( 'Beep' );
// returns 'beep'
str = lowercase( 'BeEp' );
// returns 'beep'
str = lowercase( 'Beep BOOP' );
// returns 'beep boop'
str = lowercase( '$**_Beep_BoOp_**$' );
// returns '$**_beep_boop_**$'
str = lowercase( '' );
// returns ''
CLI
Usage
Usage: lowercase [options] [<string>]
Options:
-h, --help Print this message.
-V, --version Print the package version.
Examples
$ lowercase bEEp
beep
To use as a standard stream,
$ echo -n 'bEEp' | lowercase
beep
See Also
@stdlib/string/uncapitalize
: uncapitalize the first character of a string.@stdlib/string/uppercase
: convert a string to uppercase.