Skip to content

A simple Node.js CLI application built using only core modules, plain callbacks, and asynchronous I/O functions

License

Notifications You must be signed in to change notification settings

andrewjtorres/tally

Repository files navigation

tally

A simple Node.js CLI application built using only core modules, plain callbacks, and asynchronous I/O functions

GitHub Actions LGTM Codecov All Contributors Code Style Commitizen License

Obeys the Following

  • Allows the user to supply a CLI argument containing a comma-separated list of tags
    • If no argument is given, the data/tags.txt file is parsed to get an array of tags
  • Each of the provided tags are cross referenced with the objects in data/flat-files/*.json to determine the amount of times they appear
  • If any JSON parsing errors occur during the processing of the data/flat-files/*.json files, they are logged with console.error() and the processing continues
  • The results of the JSON parsing are stored in a data/cache.json file to speed up subsequent executions
  • The final output prints the tag name and associated count in descending order:
ipsum  3
dolor  2
amet   2
lorem  0
sit    0

Contributors

Thanks goes to these wonderful people (emoji key):

Andrew Torres
Andrew Torres

💻 📖 🤔 🚇 ⚠️

This project follows the all-contributors specification. Contributions of any kind are welcome!

License

MIT © Andrew Torres

About

A simple Node.js CLI application built using only core modules, plain callbacks, and asynchronous I/O functions

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •