{"id":15021439,"url":"https://github.com/kamiazya/ink-highlight","last_synced_at":"2025-07-17T17:38:35.587Z","repository":{"id":42426291,"uuid":"245770587","full_name":"kamiazya/ink-highlight","owner":"kamiazya","description":"Highlight component for Ink 🌈","archived":false,"fork":false,"pushed_at":"2023-01-08T14:33:19.000Z","size":540,"stargazers_count":7,"open_issues_count":4,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-25T10:47:39.734Z","etag":null,"topics":["cli","color","highlight","ink","ink-component","react","syntax-highlighting","terminal"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/ink-highlight","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/kamiazya.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":"2020-03-08T07:25:39.000Z","updated_at":"2022-10-29T16:42:58.000Z","dependencies_parsed_at":"2023-02-08T06:16:31.693Z","dependency_job_id":null,"html_url":"https://github.com/kamiazya/ink-highlight","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/kamiazya/ink-highlight","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamiazya%2Fink-highlight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamiazya%2Fink-highlight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamiazya%2Fink-highlight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamiazya%2Fink-highlight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kamiazya","download_url":"https://codeload.github.com/kamiazya/ink-highlight/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamiazya%2Fink-highlight/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262035208,"owners_count":23248358,"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":["cli","color","highlight","ink","ink-component","react","syntax-highlighting","terminal"],"created_at":"2024-09-24T19:56:34.702Z","updated_at":"2025-07-04T19:38:17.806Z","avatar_url":"https://github.com/kamiazya.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![GitHub Action](https://github.com/kamiazya/ink-highlight/workflows/NodeCI/badge.svg)](https://github.com/kamiazya/ink-highlight/actions?workflow=NodeCI) [![npm version](https://badge.fury.io/js/ink-highlight.svg)](https://badge.fury.io/js/ink-highlight) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](http://makeapullrequest.com)\n\n# ink-highlight\n\nHighlight component for Ink.\nUses ink-highlight for the code syntax highlight on your cli application.\n\n## Installation\n\nThe plugin can then be installed using [npm](https://www.npmjs.com/):\n\n[![NPM](https://nodei.co/npm/ink-highlight.png)](https://nodei.co/npm/ink-highlight/)\n\n```bash\n# yarn\nyarn add ink-highlight\n# or npm\nnpm install ink-highlight\n```\n\n## Usage\n\n```tsx\nimport React from 'react';\nimport { render } from 'ink';\nimport { Highlight } from 'ink-highlight';\n\nconst code = `SELECT\n  \\`id\\`,\n  \\`name\\`\nFROM \\`users\\`\nWHERE\n  \\`id\\` = 1;\n`;\n\nrender(\u003cHighlight code={code} language=\"sql\" /\u003e);\n```\n\n\u003cimg alt=\"result\" src=\"./demo.png\" width=200px/\u003e\n\n## API\n\n### Highlight Component\n\n- **Props**\n\n```ts\ntype Props = {\n  code: string;\n  language?: string;\n};\n```\n\n## License\n\nThis software is released under the MIT License, see [LICENSE](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkamiazya%2Fink-highlight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkamiazya%2Fink-highlight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkamiazya%2Fink-highlight/lists"}