
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
A simple Node.js library for clipboard operations across different platforms.
npm install copy-node
import { copy } from 'copy-node';
// Copy text to clipboard
await copy('Hello, World!');
// Copy variables or complex strings
const text = 'This text will be copied to clipboard';
await copy(text);
const { copy } = require('copy-node');
// Copy text to clipboard
copy('Hello, World!').then(() => {
console.log('Text copied to clipboard');
}).catch((error) => {
console.error('Failed to copy text:', error.message);
});
pbcopyclipxclip or xsel to be installedUbuntu/Debian:
# For xclip
sudo apt-get install xclip
# Or for xsel
sudo apt-get install xsel
CentOS/RHEL/Fedora:
# For xclip
sudo yum install xclip
# or on newer versions
sudo dnf install xclip
# Or for xsel
sudo yum install xsel
# or on newer versions
sudo dnf install xsel
copy(text: string): Promise<void>Copies the provided text to the system clipboard.
Parameters:
text - The string to copy to clipboardReturns:
Throws:
const { copy } = require('copy-node');
async function example() {
try {
await copy('Hello from copy-node!');
console.log('Text copied to clipboard successfully!');
} catch (error) {
console.error('Failed to copy text:', error.message);
}
}
example();
MIT
FAQs
A simple Node.js library for clipboard operations across different platforms.
We found that copy-node demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.