1.0.0 • Published 10 years ago

transform-uppercase v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

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