{"id":17749737,"url":"https://github.com/stscoundrel/markari","last_synced_at":"2026-01-04T18:32:22.688Z","repository":{"id":38442559,"uuid":"340717993","full_name":"stscoundrel/markari","owner":"stscoundrel","description":"Wraps searched word with \"mark\" tags in content.","archived":false,"fork":false,"pushed_at":"2024-05-25T06:54:41.000Z","size":1288,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-09-15T11:50:30.617Z","etag":null,"topics":["highlight","javascript","mark","nodejs","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stscoundrel.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-20T17:55:41.000Z","updated_at":"2024-05-25T06:54:26.000Z","dependencies_parsed_at":"2024-10-26T13:31:40.173Z","dependency_job_id":"5aa56bdb-bd89-4f41-8205-d6fa23bbc63a","html_url":"https://github.com/stscoundrel/markari","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":"stscoundrel/typescript-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stscoundrel%2Fmarkari","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stscoundrel%2Fmarkari/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stscoundrel%2Fmarkari/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stscoundrel%2Fmarkari/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stscoundrel","download_url":"https://codeload.github.com/stscoundrel/markari/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245170390,"owners_count":20572060,"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":["highlight","javascript","mark","nodejs","typescript"],"created_at":"2024-10-26T11:24:41.943Z","updated_at":"2026-01-04T18:32:22.644Z","avatar_url":"https://github.com/stscoundrel.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Markari\n\nWrap searched words in a string with `\u003cmark\u003e` tags. Ideal for highlighting the queried word in search results\n\n### Install\n\n`yarn add markari`\n\n##### Usage\n\n```javascript\nimport { markWords } from 'markari'\n\nconst original = 'And if the day would only come, then you might just appear, even though you\\'d soon be gone';\n\n/**\n * Replaces all instances in sentence. \n */\nconst result = markWords('you', original);\nconsole.log(result)\n// And if the day would only come, then \u003cmark\u003eyou\u003c/mark\u003e might just appear, even though \u003cmark\u003eyou\u003c/mark\u003e\\'d soon be gone\n\n/**\n * Can wrap whole sentences.\n */\nconst result2 = markWords('And if the day would only come', original);\nconsole.log(result2)\n// \u003cmark\u003eAnd if the day would only come\u003c/mark\u003e, then you might just appear, even though you\\'d soon be gone\n\n/**\n * Does not edit original string, if no search words are found \n */\nconst result3 = markWords('not found in sentence', original);\nconsole.log(result3)\n// Original sentence is the same, no extra markup\n```\n\n#### What's in the name?\n\nMarkari comes from Old Norse verb \"marka\" (to mark, to draw outline, to sketch). It means the person doing the verb, someone who \"marks\".\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstscoundrel%2Fmarkari","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstscoundrel%2Fmarkari","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstscoundrel%2Fmarkari/lists"}