
Research
Malicious fezbox npm Package Steals Browser Passwords from Cookies via Innovative QR Code Steganographic Technique
A malicious package uses a QR code as steganography in an innovative technique.
force-stdin-tty
Advanced tools
Force stdin to be assigned to /dev/tty
Using npm:
npm install --save-dev force-stdin-tty
or using yarn:
yarn add force-stdin-tty --dev
This package can be used to force git hooks to allow prompts for user input. If the user is using a UI and not a terminal, you can tell them to use a terminal. See this stackoverflow question.
import { forceStdinTty } from 'force-stdin-tty';
let overwroteStdin = false;
try {
overwroteStdin = forceStdinTty();
} catch {
console.error('Please push your code in a terminal.');
process.exit(1);
}
if (overwroteStdin) {
process.stdin.destroy();
}
husky
supportThis package works with husky
.
husky
initially did add support for stdin,
but later removed it due to a Windows bug:
The husky
author suggests using the undocumented ~/.huskyrc
to enable prompts
for git hooks. But it isn't ideal because each developer would have to enable it.
See:
This package supports TypeScript.
FAQs
Force stdin to be assigned to /dev/tty
We found that force-stdin-tty 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
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.
Application Security
/Research
/Security News
Socket detected multiple compromised CrowdStrike npm packages, continuing the "Shai-Hulud" supply chain attack that has now impacted nearly 500 packages.