Created
September 27, 2016 08:40
-
-
Save ledsun/7e1fecd5214f854f68d4ca35a559845c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo 'デイリー' | node . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { | |
Transform | |
} = require('stream') | |
process.stdin | |
.pipe(new Transform({ | |
transform(chunk, encoding, callback) { | |
callback(null, chunk.toString() | |
.replace('デイリー', '')) | |
} | |
})) | |
.pipe(process.stdout) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment