{"id":15392372,"url":"https://github.com/activeguild/esbuild-plugin-prismjs","last_synced_at":"2025-04-15T23:27:53.436Z","repository":{"id":45048781,"uuid":"445449054","full_name":"activeguild/esbuild-plugin-prismjs","owner":"activeguild","description":"A PrismJS plugin for esbuild. Bundle the language and plugins set in the configuration at build time. The same options as babel-plugin-prismjs are available.","archived":false,"fork":false,"pushed_at":"2023-02-05T13:09:25.000Z","size":336,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-21T11:07:46.699Z","etag":null,"topics":["esbuild","esbuild-plugin","prismjs"],"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/activeguild.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","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":"2022-01-07T08:22:15.000Z","updated_at":"2024-09-12T07:16:17.000Z","dependencies_parsed_at":"2024-06-21T16:34:41.531Z","dependency_job_id":"5ed25200-cf28-4713-9a7f-9659f6c85f95","html_url":"https://github.com/activeguild/esbuild-plugin-prismjs","commit_stats":{"total_commits":36,"total_committers":2,"mean_commits":18.0,"dds":0.08333333333333337,"last_synced_commit":"faccb2d7eb0c3bd78dc43070d35a7876db90f1ee"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/activeguild%2Fesbuild-plugin-prismjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/activeguild%2Fesbuild-plugin-prismjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/activeguild%2Fesbuild-plugin-prismjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/activeguild%2Fesbuild-plugin-prismjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/activeguild","download_url":"https://codeload.github.com/activeguild/esbuild-plugin-prismjs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240754297,"owners_count":19852186,"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":["esbuild","esbuild-plugin","prismjs"],"created_at":"2024-10-01T15:14:40.938Z","updated_at":"2025-02-28T19:30:40.197Z","avatar_url":"https://github.com/activeguild.png","language":"TypeScript","readme":"\u003ch1 align=\"center\"\u003eesbuild-plugin-prismjs ⚡ Welcome 😀\u003c/h1\u003e\n\n\u003cp align=\"left\"\u003e\n  \u003ca href=\"https://github.com/actions/setup-node\"\u003e\u003cimg alt=\"GitHub Actions status\" src=\"https://github.com/activeguild/esbuild-plugin-prismjs/workflows/automatic%20release/badge.svg\" style=\"max-width:100%;\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nIf you are using babel, please use [babel-plugin-prismjs](https://www.npmjs.com/package/babel-plugin-prismjs).\n\n## Introduce\n\nA [PrismJS](https://github.com/PrismJS/prisms) plugin for esbuild.\nBundle the language and plugins set in the configuration at build time.\nThe same options as [babel-plugin-prismjs](https://www.npmjs.com/package/babel-plugin-prismjs) are available.\n\n## Install\n\n```bash\nnpm i -D esbuild-plugin-prismjs\n\n```\n\n## Usage\n\n```bash\nimport { prismjsPlugin } from 'esbuild-plugin-prismjs'\nimport { build } from 'esbuild'\n\nbuild({\n  entryPoints: ['./src/index.ts'],\n  outdir: 'dist',\n  bundle: true,\n  minify: true,\n  platform: 'node',\n  plugins: [\n    prismjsPlugin({\n      inline: true,\n      languages: ['typescript', 'javascript', 'css', 'markup'],\n      plugins: [\n        'line-highlight',\n        'line-numbers',\n        'show-language',\n        'copy-to-clipboard',\n      ],\n      theme: 'okaidia',\n      css: true,\n    }),\n  ],\n}).catch(() =\u003e process.exit(1))\n\n```\n\n## Options\n\nA plugin option is [babel-plugin-prismjs](https://www.npmjs.com/package/babel-plugin-prismjs) and you can use the same option.\n\n#### Original Options\n\n| Property | Type    | Description                          |\n| -------- | ------- | ------------------------------------ |\n| inline   | boolean | Embed the css inline. (default true) |\n\n## Principles of conduct\n\nPlease see [the principles of conduct](https://github.com/activeguild/visualize-react-component/blob/master/.github/CONTRIBUTING.md) when building a site.\n\n## License\n\nThis library is licensed under the [MIT license](https://github.com/activeguild/visualize-react-component/blob/master/LICENSE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factiveguild%2Fesbuild-plugin-prismjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Factiveguild%2Fesbuild-plugin-prismjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factiveguild%2Fesbuild-plugin-prismjs/lists"}