
Security News
Feross on Risky Business Weekly Podcast: npm’s Ongoing Supply Chain Attacks
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
@eriice/pretty-code
Advanced tools
This module is an effort to implement highlight code block in Angular project.
This module is an effort to implement highlight code block in Angular project.
This module is seperated from the Angular.io. I follow the source code in custom-elements/code part and packaged secondary.
This software is provided free of charge and without restriction under the MIT License
Please make sure the follow packages have been introduced in your project cause this module is based on Angular-Material.
@angular/cdk
@angular/material
@angular/animations
This package is installable through NPM.
$ npm install @eriice/pretty-code --save
Example module
import { PrettyCodeModule } from "@eriice/pretty-code";
@NgModule({
imports: [
...
PrettyCodeModule
]
})
Example Template
// single code block
<app-code-example [config]="config"></app-code-example>
// multiple code block
<app-code-tabs [config]="config"></app-code-tabs>
Input property
Property | Type | Default | Description |
---|---|---|---|
config | Config | null | Used to configure code block display including language of code, header, linenum and the code block. |
interface Config {
code: string| null;
language: string| null;
linenums: boolean| number| string;
header: string| null;
}
FAQs
This module is an effort to implement highlight code block in Angular project.
The npm package @eriice/pretty-code receives a total of 0 weekly downloads. As such, @eriice/pretty-code popularity was classified as not popular.
We found that @eriice/pretty-code demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.