{"id":16686624,"url":"https://github.com/jamesmh/tagbuilder","last_synced_at":"2026-04-28T10:05:02.184Z","repository":{"id":65374303,"uuid":"82995982","full_name":"jamesmh/TagBuilder","owner":"jamesmh","description":"Builds Tags (common words) from text.","archived":false,"fork":false,"pushed_at":"2019-01-29T14:46:10.000Z","size":105,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-08T10:53:47.308Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jamesmh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-24T03:11:28.000Z","updated_at":"2019-01-29T14:46:11.000Z","dependencies_parsed_at":"2023-01-20T01:15:43.316Z","dependency_job_id":null,"html_url":"https://github.com/jamesmh/TagBuilder","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesmh%2FTagBuilder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesmh%2FTagBuilder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesmh%2FTagBuilder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesmh%2FTagBuilder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamesmh","download_url":"https://codeload.github.com/jamesmh/TagBuilder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243437966,"owners_count":20290864,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T15:06:26.718Z","updated_at":"2025-12-29T10:19:38.778Z","avatar_url":"https://github.com/jamesmh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TagBuilder\n\nBlogs, for example, may want to keep track of the most common words within a blog post. This small utility can help to solve this problem.\n\nGive the utility some text and it will give you the number of occurances for each word in the text.\n\nOnly words with more than 3 characters are counted.\n\nAlso, all words are converted to lowercase (case-insensitive).\n\n## Install\nRun ```npm install --save-dev tagbuilder```\n\nIf you clone this repo, you can ```npm install``` then run the jest unit tests by ```npm test```.\n\n## Usage\n\n### Single String\n\n```javascript\nconst TagBuilder = require('tagbuilder').TagBuilder;\nconst builder = new TagBuilder();\n\n//then...\n\nbuilder.Generate(\"i am some text here we go text\");\n\n//output\n\n//[ { name: 'some', amount: 1 },\n//  { name: 'text', amount: 2 },\n//  { name: 'here', amount: 1 } ]\n```\n\n### Array Of Strings\n\nAlternatively, you may supply an array of strings to the ```Generate()``` method.\n\nThe results will be calculated/aggregated for all the strings supplied (as one unit).\n\n```javascript\n\nconst texts = [`hello i am\n\n        some weird\n        \n        text but my tags still count!`,\n        `hello i am more text`,\n         `some weird text ...`]\nconsole.log(b.Generate(texts));\n\n///output\n\n/// [ { name: 'hello', amount: 2 },\n///  { name: 'some', amount: 2 },\n///  { name: 'weird', amount: 2 },\n///  { name: 'text', amount: 3 },\n///  { name: 'tags', amount: 1 },\n///  { name: 'still', amount: 1 },\n///  { name: 'count', amount: 1 },\n///  { name: 'more', amount: 1 } ]\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamesmh%2Ftagbuilder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamesmh%2Ftagbuilder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamesmh%2Ftagbuilder/lists"}