
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
@ngnz/copy-to-clipboard
Advanced tools
>Simple Angular module exposing basic Directive that'll try to use native `document.execCommand` to copy content text to clopboard and finally, display overidable `alert` to confirme action to user.
Simple Angular module exposing basic Directive that'll try to use native
document.execCommand
to copy content text to clopboard and finally, display overidablealert
to confirme action to user.
Install npm
package with the following commande:
$ npm install @ngzn/copy-to-clipboard
And add import inside app.module.ts
or desired module.
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
// import Angualr CopyToClipboardModule from @ngnz
import { CopyToClipboardModule } from '@ngnz/copy-to-clipboard';
@NgModule({
declarations: [AppComponent],
imports: [
BrowserModule,
// add module inside your Angular application module
CopyToClipboardModule
],
providers: [],
bootstrap: [AppComponent],
})
export class AppModule {}
When an element that contains nzCopyToClipboard
directive is clicked, the value of nzCopyToClipboard
will be copied into the clipboard.
<button nzCopyToClipboard="Text to copy to clipboard">Copy</button>
<button [nzCopyToClipboard]="typescritpProperty">Copy</button>
This feature is exporetable without Angular wrapping to allow using inside other projet.
// import function
import { copyToClipboardFunction } from '@ngnz/copy-to-clipboard';
// user copy function logic
const myTextToCopy = 'See magic happen!';
copyToClipboardFunction(myTextToCopy);
FAQs
>Simple Angular module exposing basic Directive that'll try to use native `document.execCommand` to copy content text to clopboard and finally, display overidable `alert` to confirme action to user.
The npm package @ngnz/copy-to-clipboard receives a total of 1 weekly downloads. As such, @ngnz/copy-to-clipboard popularity was classified as not popular.
We found that @ngnz/copy-to-clipboard 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.
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.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.