{"id":21644545,"url":"https://github.com/nirewen/tatsuscript","last_synced_at":"2025-04-11T18:24:58.519Z","repository":{"id":30710311,"uuid":"125778419","full_name":"nirewen/tatsuscript","owner":"nirewen","description":"An Interpreter for Tatsumaki Tags","archived":false,"fork":false,"pushed_at":"2023-01-05T00:54:13.000Z","size":297,"stargazers_count":5,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T18:24:51.964Z","etag":null,"topics":["command","custom","script","tags","tatsumaki"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/nirewen.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-03-18T23:48:45.000Z","updated_at":"2022-09-03T20:40:34.000Z","dependencies_parsed_at":"2023-01-14T17:31:48.364Z","dependency_job_id":null,"html_url":"https://github.com/nirewen/tatsuscript","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/nirewen%2Ftatsuscript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nirewen%2Ftatsuscript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nirewen%2Ftatsuscript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nirewen%2Ftatsuscript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nirewen","download_url":"https://codeload.github.com/nirewen/tatsuscript/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248456381,"owners_count":21106607,"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":["command","custom","script","tags","tatsumaki"],"created_at":"2024-11-25T05:40:50.359Z","updated_at":"2025-04-11T18:24:58.492Z","avatar_url":"https://github.com/nirewen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TatsuScript\n\n[![David](https://img.shields.io/david/nirewen/tatsuscript.png)](https://david-dm.org/nirewen/tatsuscript) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.png)](https://raw.githubusercontent.com/nirewen/tatsucript/master/LICENSE) [![npm](https://img.shields.io/npm/v/tatsuscript.png)](https://npm.im/tatsuscript)\n\nA Tatsumaki tag script interpreter\n\n## Installing\n\n```\nnpm install tatsuscript --save\n```\n\n## Usage\n\n```js\nconst TatsuScript = require('tatsuscript');\n\nlet script = '{abs;-1}'; // the absolute function\n\nlet output = TatsuScript.run(script, message); // the message is the context the command was run in\n\nconsole.log(output); // 1\n```\n\n## Registering custom functions\n\nExample using [Discord.JS](https://discord.js.org)\n```js\nTatsuScript.registerFunction('sendfile', function (url) {\n    url = this.interpret(url); // url should be interpreted, it's a token\n\n    this.context.channel.send(new Discord.MessageAttachment(url));\n\n    return `Sent file to ${this.context.channel.name}`;\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnirewen%2Ftatsuscript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnirewen%2Ftatsuscript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnirewen%2Ftatsuscript/lists"}