Tag You Are
I am currently writing a blog app MARSS using
React and Markdown. I wanted the ability to add tags and categories to the
posts (having the same functionality as that that is available in Hexo and
most other blogging systems.
I initially wrote the tests and code as part of MARSS, but decided to extract
it out into its own package as it could be helpful for other projects.
The module contains three Tags prototypes that can be used to count the number
of documents that have certain tags. The tags can either be just strings,
hierarchical strings given as string arrays and stored using a given separator,
or a combination of string and string arrays.
Retrieving the tags count will return an object of tag/count (key/value)