{"id":18718521,"url":"https://github.com/highlightjs/highlightjs-sentinel","last_synced_at":"2025-11-10T14:30:24.494Z","repository":{"id":66013981,"uuid":"223030373","full_name":"highlightjs/highlightjs-sentinel","owner":"highlightjs","description":"HashiCorp's Sentinel policy-as-code language","archived":false,"fork":false,"pushed_at":"2022-02-25T21:22:09.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-12-28T10:47:49.835Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/highlightjs.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}},"created_at":"2019-11-20T21:24:58.000Z","updated_at":"2022-02-25T21:22:12.000Z","dependencies_parsed_at":"2023-04-27T20:01:46.201Z","dependency_job_id":null,"html_url":"https://github.com/highlightjs/highlightjs-sentinel","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/highlightjs%2Fhighlightjs-sentinel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/highlightjs%2Fhighlightjs-sentinel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/highlightjs%2Fhighlightjs-sentinel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/highlightjs%2Fhighlightjs-sentinel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/highlightjs","download_url":"https://codeload.github.com/highlightjs/highlightjs-sentinel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239581790,"owners_count":19662958,"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-07T13:21:44.965Z","updated_at":"2025-11-10T14:30:24.460Z","avatar_url":"https://github.com/highlightjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `sentinel` - a language definition for highlight.js\n\nThis is a [highlight.js](https://highlightjs.org/) language definition for\n[Sentinel](https://docs.hashicorp.com/sentinel/), HashiCorp's policy as code\nlanguage.\n\nFor more about highlight.js, see https://highlightjs.org/\n\nFor more about Sentinel, see https://docs.hashicorp.com/sentinel/.\n\n### Usage\n\nSimply include the `highlight.js` script package in your webpage or node app,\nload up this module and apply it to `hljs`.\n\nIf you're not using a build system and just want to embed this in your webpage:\n\n```html\n\u003cscript type=\"text/javascript\" src=\"/path/to/highlight.pack.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\" src=\"/path/to/highlightjs-sentinel/sentinel.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\"\u003e\n    hljs.registerLanguage('sentinel', hljsDefineSentinel);\n    hljs.highlightAll();\n\u003c/script\u003e\n```\n\nIf you're using webpack / rollup / browserify / node:\n\n```javascript\nvar hljs = require('highlightjs');\nvar hljsDefineSentinel = require('highlightjs-sentinel');\n\nhljsDefineSentinel(hljs);\nhljs.highlightAll();\n```\n\n### Advanced\n\nThis is a pretty simple package, the only thing you might want to do differently\nis name the language something other than `sentinel`. If you want to do this,\nsimply `import { definer } from 'highlightjs-sentinel';` and use it like:\n`hljs.registerLanguage('othername', definer);`.\n\n### Author\n\nChris Marchesi \u003cchrism@vancluevertech.com\u003e\n\nBased on the Go highlight.js language definition, by Stephan Kountso\n\u003csteplg@gmail.com\u003e and Evgeny Stepanischev \u003cimbolk@gmail.com\u003e.\n\n### Maintainer\n\nChris Marchesi \u003cchrism@vancluevertech.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhighlightjs%2Fhighlightjs-sentinel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhighlightjs%2Fhighlightjs-sentinel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhighlightjs%2Fhighlightjs-sentinel/lists"}