tag-you-are
Simple helper library for dealing with document tags/categories
Simple tag objects for keeping count of how many documents you have with certain tags on them. The tags can either be flat, hierarchical, or a mixture of both.
There are three prototypes for creating the tag objects
// Import them all ; // Or by themselves ; ; ; // Fresh tags const tags = ; // Pre-loved (pre-loaded) tags const tags1 = ; // Add documents to tag counts tags1; tags1; // Remove documents to tag counts tags1; // Get the tag counts tagtags; // { test: 1, cool: 11, great: 1 } // Array Tags require a separator, and are given as an array of strings const categories = ; categories; categories; categories; categoriestags // { cool: 2, one: 1, two: 1, great: 1 } // Tags needs a separator as well, but tags can be either strings or tags const superTags = ; superTags; superTags; superTags;