Security News
CISA Brings KEV Data to GitHub
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
@lakea/gravity-identicon-adapter-minidenticons
Advanced tools
An adapter for `GrIdenticon` using [`Minidenticons`](https://github.com/laurentpayot/minidenticons) as implementation.
An adapter for GrIdenticon
using Minidenticons
as implementation.
Install the library using NPM:
npm install @lakea/gravity-identicon-adapter-minidenticon minidenticons --save
Next, create a new file, identicon-adapter-root.module.ts
which exposes an Angular's module with a default configuration.
import {NgModule} from '@angular/core';
import {GrIdenticon} from '@lakea/gravity/cdk';
import {GrIdenticonAdapterMinidenticons} from '@lakea/gravity-identicon-adapter-minidenticons';
@NgModule({
providers: [
{
provide: GrIdenticon,
useClass: GrIdenticonAdapterMinidenticons,
},
],
})
export class IdenticonAdapterRootModule {}
Import IdenticonAdapterRootModule
to application root module like app.module.ts
.
You should import the IdenticonAdapterRootModule once in your root module.
The IdenticonAdapterRootModule
provide the adapter implementation to GrIdenticon
.
Create your adapter implementation class extending GrIdenticon
abstraction:
import {Injectable} from '@angular/core';
import {GrIdenticon} from '@lakea/gravity/cdk';
@Injectable()
export class GrIdenticonAdapter extends GrIdenticon {
constructor() {
super();
}
public generateSVG(value: string): string {
// YOUR IMPLEMENTATION
}
}
So, provide it on your application root module (maybe app.module.ts
), like this:
providers: [
{
provide: GrIdenticon,
useClass: GrIdenticonAdapter,
}
]
FAQs
An adapter for `GrIdenticon` using [`Minidenticons`](https://github.com/laurentpayot/minidenticons) as implementation.
We found that @lakea/gravity-identicon-adapter-minidenticons demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
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.