transform-uppercase

v1.0.0
Transform that makes all values uppercase
testing uppercase transform

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

npm i transform-uppercase

Metadata

  • MIT
  • Whatever
  • Mathias Buus
  • released 6/11/2014

Downloads

Maintainers