🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

@stdlib/string-uppercase

Package Overview
Dependencies
Maintainers
4
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stdlib/string-uppercase

Convert a string to uppercase.

Source
npmnpm
Version
0.0.6
Version published
Weekly downloads
14K
-5.98%
Maintainers
4
Weekly downloads
 
Created
Source

uppercase

NPM version Build Status Coverage Status dependencies

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 © 2016-2021. The Stdlib Authors.

Keywords

stdlib

FAQs

Package last updated on 09 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts