Last active
October 12, 2016 11:25
-
-
Save demosifter/bd0cd22a5500a1d1df1a3ea78bbac34f 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
module.exports = function (got) { | |
const total = got.in.data.reduce((p, d) => p + parseInt(d.value), 0); | |
return { | |
key: 'word_count', | |
value: total | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment