{"id":15537428,"url":"https://github.com/nullvoxpopuli/prismjs-glimmer","last_synced_at":"2025-04-13T00:50:47.849Z","repository":{"id":37031154,"uuid":"361248099","full_name":"NullVoxPopuli/prismjs-glimmer","owner":"NullVoxPopuli","description":"glimmer syntax highlighting with prism.js","archived":false,"fork":false,"pushed_at":"2024-04-28T22:53:05.000Z","size":445,"stargazers_count":3,"open_issues_count":16,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-05-01T23:24:21.134Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://prismjs-glimmer.nullvoxpopuli.com/","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/NullVoxPopuli.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2021-04-24T19:24:04.000Z","updated_at":"2024-05-05T23:23:22.397Z","dependencies_parsed_at":"2023-12-24T22:27:33.006Z","dependency_job_id":"9e7f01d7-9881-41c5-8016-e0eb16db80ce","html_url":"https://github.com/NullVoxPopuli/prismjs-glimmer","commit_stats":{"total_commits":31,"total_committers":3,"mean_commits":"10.333333333333334","dds":0.4193548387096774,"last_synced_commit":"e2389cf61fa10aa3520c485239dc7e89652a376b"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullVoxPopuli%2Fprismjs-glimmer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullVoxPopuli%2Fprismjs-glimmer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullVoxPopuli%2Fprismjs-glimmer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullVoxPopuli%2Fprismjs-glimmer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NullVoxPopuli","download_url":"https://codeload.github.com/NullVoxPopuli/prismjs-glimmer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248650435,"owners_count":21139672,"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-10-02T11:57:07.164Z","updated_at":"2025-04-13T00:50:47.826Z","avatar_url":"https://github.com/NullVoxPopuli.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# prismjs-glimmer\n\n[![npm version](https://badge.fury.io/js/prismjs-glimmer.svg)](https://www.npmjs.com/package/prismjs-glimmer)\n[![code quality](https://badgen.net/lgtm/grade/github/NullVoxPopuli/prismjs-glimmer/js?label=code+quality)](https://lgtm.com/projects/g/NullVoxPopuli/prismjs-glimmer/)\n\nglimmer syntax highlighting with [Prism.js](https://github.com/PrismJS/prism)\n\n## Install\n\n```bash\nnpm install prismjs-glimmer\n```\n\n## Usage\n\n```js\nimport Prism from 'prismjs';\nimport { setup } from 'prismjs-glimmer';\n\nsetup(Prism);\n\nPrism.highlightAll();\n```\n\n - the `javascript` language must be registered before `setup` is called.\n - `setup` _must_ be called before any highlighting occurs.\n\nSupported language tags:\n\n```html\n\u003cpre\u003e\n  \u003ccode class=\"language-{tag}\"\u003e\n```\nwhere `{tag}` could be:\n - glimmer\n - hbs\n - html.hbs\n - html.handlebars\n - htmlbars\n\n**NOTE** handlebars highlighting will use glimmer highlighting when this plugin is present\n\n## CDN Usage\n\n### Traditional Script Tags\n\n```html\n\u003cscript type=\"text/javascript\" src=\"/cdn/path/to/prismjs.min.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\" src=\"/cdn/path/to/prismjs-glimmer/glimmer.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\"\u003ePrism.highlightAll();\u003c/script\u003e\n```\n\n## Node / cjs / `require`\n\n```js\nconst Prism = require('prismjs');\nconst { setup } = require('prismjs-glimmer');\n\nsetup(Prism);\n\nPrism.highlightAll();\n```\n\nOnly Node 14 is supported\n\n## Node ES Modules / `import`\n\n```js\nimport Prism from 'prismjs';\nimport { setup } from 'prismjs-glimmer';\n\nsetup(Prism);\n\nPrism.highlightAll();\n```\n\nWith Node 14, launch with\n\n```bash\nNODE_OPTIONS=\"--experimental-vm-modules\" node your-module-script.js\n```\n\n## Contributing\n\nDebug with `pnpm debug -p 4201`\nVisit `http://localhost:4201`\n\nRun Tets with `yarn test` or `npm run test`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnullvoxpopuli%2Fprismjs-glimmer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnullvoxpopuli%2Fprismjs-glimmer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnullvoxpopuli%2Fprismjs-glimmer/lists"}