Uncapitalize the first character of a string.
npm install @stdlib/string-uncapitalize
var uncapitalize = require( '@stdlib/string-uncapitalize' );
Uncapitalizes the first character of a string
.
var out = uncapitalize( 'Last man standing' );
// returns 'last man standing'
out = uncapitalize( 'Hidden Treasures' );
// returns 'hidden Treasures'
var uncapitalize = require( '@stdlib/string-uncapitalize' );
var out = uncapitalize( 'Last man standing' );
// returns 'last man standing'
out = uncapitalize( 'Presidential election' );
// returns 'presidential election'
out = uncapitalize( 'JavaScript' );
// returns 'javaScript'
out = uncapitalize( 'Hidden Treasures' );
// returns 'hidden Treasures'
To use the module as a general utility, install the module globally
npm install -g @stdlib/string-uncapitalize
Usage: uncapitalize [options] [<string>]
Options:
-h, --help Print this message.
-V, --version Print the package version.
$ uncapitalize Beep
beep
To use as a standard stream,
$ echo -n 'Beep' | uncapitalize
beep
This package is part of stdlib, a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more.
For more information on the project, filing bug reports and feature requests, and guidance on how to develop stdlib, see the main project repository.
See LICENSE.
Copyright © 2016-2021. The Stdlib Authors.