1.0.0 • Published 11 years ago
transform-uppercase v1.0.0
transform-uppercase
Transform that makes all values uppercase.
npm install transform-uppercaseor to install the command line tool globally
npm install -g transform-uppercaseUsage
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 HELLOLicense
MIT
1.0.0
11 years ago