
Research
Security News
Malicious npm Packages Use Telegram to Exfiltrate BullX Credentials
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
feature-detector
Advanced tools
An extensible tool for detecting environment features such as WebGL or Web Workers.
npm install feature-detector
import { Detector, FeatureId } from "feature-detector";
const detector = new Detector();
const feature = detector.get(FeatureId.WEBGL);
console.log(feature.supported);
console.log(detector.getMessage(feature));
import { Feature } from "feature-detector";
export class MyFeature extends Feature {
constructor() {
super();
this.name = "My Feature";
// Check if your feature is supported in this environment.
// Note that this.root serves as a reference to the global scope.
this.supported = true || false;
}
}
import { Detector } from "feature-detector";
import { MyFeature } from "./MyFeature.js";
const detector = new Detector();
const MY_ID = "my-feature";
detector.set(MY_ID, new MyFeature());
Maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.
FAQs
A tool for detecting environment features.
The npm package feature-detector receives a total of 10 weekly downloads. As such, feature-detector popularity was classified as not popular.
We found that feature-detector 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 uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.
Security News
AI-generated slop reports are making bug bounty triage harder, wasting maintainer time, and straining trust in vulnerability disclosure programs.