🚀 Launch Week Day 4:Introducing the Alert Details Page: A Better Way to Explore Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

transform-uppercase

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

transform-uppercase

Transform that makes all values uppercase

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

transform-uppercase

Transform that makes all values uppercase.

npm install transform-uppercase

or to install the command line tool globally

npm install -g transform-uppercase

Usage

Pipe strings to it and it uppercases them. Pipe objects to it and it uppercases all the values

var uppercase = require('transform-uppercase')

uppercase.write({hello:'world'})
uppercase.write('hello')

uppercase.on('data', function(data) {
  console.log(data) // will print {hello:'WORLD'} and 'HELLO'
})

You can also use it from the command line

$ echo '{"hello":"world"}' | transform-uppercase --json # prints {"hello":"WORLD"}
$ echo hello | transform-uppercase # prints HELLO

License

MIT

Keywords

testing

FAQs

Package last updated on 11 Jun 2014

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