Package Exports
- @stdlib/string-uppercase
- @stdlib/string-uppercase/lib/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@stdlib/string-uppercase) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
uppercase
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
License
See LICENSE.
Copyright
Copyright © 2016-2022. The Stdlib Authors.