Created
May 25, 2018 18:52
-
-
Save chrismatthieu/6c5a6a1e0831311d50f6c10ad431c038 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
process.stdin.setEncoding('utf8'); | |
process.stdin.on('readable', () => { | |
var input = process.stdin.read(); | |
if(input !== null) { | |
var result = sentiment(input) | |
process.stdout.write(JSON.stringify(result)); | |
process.exit(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment