{"id":19198318,"url":"https://github.com/bombshell-dev/ansx","last_synced_at":"2025-09-17T17:03:06.307Z","repository":{"id":261441796,"uuid":"884326478","full_name":"bombshell-dev/ansx","owner":"bombshell-dev","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-06T15:00:43.000Z","size":11,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T07:35:31.614Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/bombshell-dev.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":"2024-11-06T14:52:38.000Z","updated_at":"2025-02-20T23:58:59.000Z","dependencies_parsed_at":"2024-11-06T16:04:11.625Z","dependency_job_id":null,"html_url":"https://github.com/bombshell-dev/ansx","commit_stats":null,"previous_names":["bombshell-dev/ansx"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bombshell-dev%2Fansx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bombshell-dev%2Fansx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bombshell-dev%2Fansx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bombshell-dev%2Fansx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bombshell-dev","download_url":"https://codeload.github.com/bombshell-dev/ansx/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248198889,"owners_count":21063628,"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-11-09T12:21:08.963Z","updated_at":"2025-09-17T17:03:01.265Z","avatar_url":"https://github.com/bombshell-dev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `ansx` (ansi syntax)\n\nANSI Syntax is an EXPERIMENTAL markup language for ANSI escape sequences. Use it to render terminal apps!\n\n- inspired by HTML (`class`, built-in elements)\n- supports a subset of CSS (style)\n- Built on top of JavaScript tagged template literals (no build step)\n\n## Development\n\nRun `pnpm start` to run the `./demo.ts` file.\n\n## Example\n\n```js\nimport { ansx } from \"ansx\";\n\nfunction main() {\n    const name = 'user';\n    const output = ansx/* html */`\n        \u003cdiv\u003e\n            \u003ch1\u003eGreetings \u003cspan class=\"name\"\u003e${name}\u003c/span\u003e\u003c/h1\u003e\n            \u003cp\u003e🫡  It is your lucky day!\u003c/p\u003e\n        \u003c/div\u003e\n        \u003cstyle\u003e\n            h1 {\n                color: green;\n                margin-left: 3;\n            }\n            .name {\n                color: black;\n                background: cyan;\n                padding-inline: 1;\n            }\n            p {\n                color: yellow;\n            }\n        \u003c/style\u003e\n    `\n    console.log(output);\n}\n\nmain();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbombshell-dev%2Fansx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbombshell-dev%2Fansx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbombshell-dev%2Fansx/lists"}