transform-uppercase

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i transform-uppercase

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • mafintosh