
Research
Malicious fezbox npm Package Steals Browser Passwords from Cookies via Innovative QR Code Steganographic Technique
A malicious package uses a QR code as steganography in an innovative technique.
highlightjs-cedar
Advanced tools
**⚠️ THIS PACKAGE IS DEPRECATED. PLEASE USE THE [OFFICIAL VERSION](https://github.com/cedar-policy/highlightjs-cedar/tree/main). ⚠️**
⚠️ THIS PACKAGE IS DEPRECATED. PLEASE USE THE OFFICIAL VERSION. ⚠️
Highlight.js syntax for Cedar
Get hljs-cedar.min.js
from latest
release or build
hljs-cedar.min.js
with:
yarn build
Include in HTML page:
<pre>
<code class="language-cedar">
Cedar code...
</code>
</pre>
...
<link rel="stylesheet" href="path/to/theme.css" />
<script src="path/to/highlight.min.js"></script>
<script src="path/to/hljs-cedar.min.js"></script>
<script>
hljs.registerLanguage("cedar", hljsCedar);
hljs.highlightAll();
</script>
Install packages:
npm install highlight.js
npm install highlightjs-cedar
Import modules in Node:
const hljs = require("highlight.js");
const hljsCedar = require("highlightjs-cedar");
const code = `
// Users can edit their own info, admins can edit anyone's info
permit (
principal,
action,
resource in HealthCareApp::InfoType::"accountinfo"
)
when {
resource.subject == principal ||
principal in HealthCareApp::Role::"admin"
};
//A patient may create an appointment for themselves, or an administrator can do it
permit (
principal,
action == HealthCareApp::Action::"createAppointment",
resource
)
when {
(context.referrer in HealthCareApp::Role::"doctor" && resource.patient == principal) ||
principal in HealthCareApp::Role::"admin"
};
`;
hljs.registerLanguage("cedar", hljsCedar);
const result = hljs.highlight(code, {
language: "cedar",
});
FAQs
**⚠️ THIS PACKAGE IS DEPRECATED. PLEASE USE THE [OFFICIAL VERSION](https://github.com/cedar-policy/highlightjs-cedar/tree/main). ⚠️**
The npm package highlightjs-cedar receives a total of 57 weekly downloads. As such, highlightjs-cedar popularity was classified as not popular.
We found that highlightjs-cedar demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.
Application Security
/Research
/Security News
Socket detected multiple compromised CrowdStrike npm packages, continuing the "Shai-Hulud" supply chain attack that has now impacted nearly 500 packages.