
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@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.
The npm package @lakea/gravity-identicon-adapter-minidenticons receives a total of 0 weekly downloads. As such, @lakea/gravity-identicon-adapter-minidenticons popularity was classified as not popular.
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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.