transform that makes all values uppercase
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
cli.js
index.js
package.json

README.md

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