@stdlib/string-uppercase

Convert a string to uppercase.

Usage no npm install needed!

<script type="module">
  import stdlibStringUppercase from 'https://cdn.skypack.dev/@stdlib/string-uppercase';
</script>

README

uppercase

NPM version Build Status Coverage Status

Convert a string to uppercase.

Installation

npm install @stdlib/string-uppercase

Usage

var uppercase = require( '@stdlib/string-uppercase' );

uppercase( str )

Converts a string to uppercase.

var str = uppercase( 'bEEp' );
// returns 'BEEP'

Examples

var uppercase = require( '@stdlib/string-uppercase' );

var str;

str = uppercase( 'Beep' );
// returns 'BEEP'

str = uppercase( 'BeEp' );
// returns 'BEEP'

str = uppercase( 'Beep BOOP' );
// returns 'BEEP BOOP'

str = uppercase( '$**_beep_BoOp_**

 );
// returns '$**_BEEP_BOOP_**



str = uppercase( '' );
// returns ''

CLI

Installation

To use the module as a general utility, install the module globally

npm install -g @stdlib/string-uppercase

Usage

Usage: uppercase [options] [<string>]

Options:

  -h,    --help                Print this message.
  -V,    --version             Print the package version.

Examples

$ uppercase bEEp
BEEP

To use as a standard stream,

$ echo -n 'bEEp' | uppercase
BEEP

Notice

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.

Community

Chat


License

See LICENSE.

Copyright

Copyright © 2016-2022. The Stdlib Authors.