{"id":16622956,"url":"https://github.com/seldszar/tekko","last_synced_at":"2025-06-14T16:08:07.142Z","repository":{"id":63261049,"uuid":"149812835","full_name":"Seldszar/tekko","owner":"Seldszar","description":"Another IRC message parser and formatter.","archived":false,"fork":false,"pushed_at":"2022-11-16T00:48:10.000Z","size":338,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-02T05:24:54.256Z","etag":null,"topics":["formatter","ircv3","parser"],"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/Seldszar.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":"2018-09-21T20:10:53.000Z","updated_at":"2025-01-25T10:20:32.000Z","dependencies_parsed_at":"2023-01-23T08:00:48.834Z","dependency_job_id":null,"html_url":"https://github.com/Seldszar/tekko","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Seldszar%2Ftekko","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Seldszar%2Ftekko/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Seldszar%2Ftekko/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Seldszar%2Ftekko/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Seldszar","download_url":"https://codeload.github.com/Seldszar/tekko/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238909241,"owners_count":19550836,"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":["formatter","ircv3","parser"],"created_at":"2024-10-12T03:04:19.255Z","updated_at":"2025-02-14T20:31:51.515Z","avatar_url":"https://github.com/Seldszar.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tekko\n\n\u003e Another IRC message parser and formatter.\n\nHeavily inspired by [`irc-message`](https://github.com/sigkell/irc-message), this parser also includes a built-in tag value unescaper according to [IRCv3 Specifications](https://ircv3.net/specs/core/message-tags-3.2.html).\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n- [Author](#author)\n- [License](#license)\n\n## Installation\n\n```bash\nnpm install tekko --save\n```\n\n## Usage\n\n### Parse\n\n```javascript\nconst { parse } = require(\"tekko\");\n\nconst result = parse(\"@lorem=ipsum;dolor :hello!sir@madam PRIVMSG #test :Hello, world!\"));\n/* { command: 'PRIVMSG',\n *   params: [ '#test', 'Hello, world!' ],\n *   prefix:\n *    { host: 'madam',\n *      nick: 'hello',\n *      user: 'sir' },\n *   tags: {\n *      lorem: 'ipsum',\n *      dolor: true } }\n */\n\nconsole.log(result.middle);\n/* [ '#test' ]\n */\n\nconsole.log(result.trailing);\n/* 'Hello, world!'\n */\n```\n\n### Format\n\n```javascript\nconst { format } = require(\"tekko\");\n\nconst result = format({\n  command: \"PRIVMSG\",\n  params: [\"#test\", \"Hello, world!\"],\n  prefix: {\n    host: \"madam\",\n    nick: \"hello\",\n    user: \"sir\",\n  },\n  tags: {\n    lorem: 'ipsum',\n    dolor: true,\n  },\n});\n/* \"@lorem=ipsum;dolor :hello!sir@madam PRIVMSG #test :Hello, world!\"\n */\n```\n\n## Author\n\nAlexandre Breteau - [@0xSeldszar](https://twitter.com/0xSeldszar)\n\n## License\n\nMIT © [Alexandre Breteau](https://seldszar.fr)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseldszar%2Ftekko","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseldszar%2Ftekko","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseldszar%2Ftekko/lists"}