Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
github.com/vsashyn/ink-syntax-highlight
Synax highlight component for Ink.
$ npm install ink-syntax-highlight
import React from 'react';
import {render, Text} from 'ink';
import SyntaxHighlight from 'ink-syntax-highlight';
render(<SyntaxHighlight code="const hello = 'world'" />);
Type: string
Source code to highlight.
Type: string
Language of the source code. If you don't set it yourself, this component will try to auto-detect it. All languages of highlight.js are supported.
Type: Theme
You can write your own theme and pass it as prop. More info regarding custom theme.
FAQs
Unknown package
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.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.