Small script to display a list of all characters present in a file with a count of how many times that char is in the file.
node app.js pathToFile [printAsText]
- [ ] indicate an optional parameter
- If printAsText is present the result is listed as char count, if not present the result is an array of JSON objects in the form:
{
"char": "A",
"count": 654
}