
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
jsdualsense
Advanced tools
jsDualsense is a JavaScript library for interacting with the PlayStation 5 DualSense (and Edge) controller using WebHID. It allows you to read inputs, control LED lights, vibration, adaptive triggers, and audio from the controller directly in the browser.
npm install jsdualsense
Or download the files from this repository.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Light features example</title>
</head>
<body>
<input type="button" value="Conect" id="connectButton" />
<input type="button" value="Close" id="closeButton" />
<script type="module" src="index.js"></script>
</body>
</html>
//index.js
// Local import for development or internal use
import { jsDualsense, TrigerEffects } from "jsdualsense";
// Import from CDN for environments where packages can't be installed (e.g., directly in browsers)
//import {jsDualsense, TrigerEffects} from 'https://cdn.skypack.dev/jsdualsense';
const startElement = document.getElementById("connectButton");
const closeElement = document.getElementById("closeButton");
const ds = new jsDualsense();
startElement.addEventListener("click", async () => {
await ds.start(); // Connect
const data = await ds.readData(); // Read input data
console.log("Input:", data);
// Change LED color to blue
await ds.setLight.setColorI([0, 0, 255]);
// Vibrate the left motor at 50%
await ds.setVibrationL.setVibration(128);
// Set left trigger to max force
await ds.setTriggerL.setEffect(TrigerEffects.Weapon);
});
closeElement.addEventListener("click", async () => {
await ds.finish(); // Disconnect
});
Check out the folder en_documentation for more information about the function of this library.
MIT
Developed by amerca9664
FAQs
Control your PS5 (or EDGE) controller with JavaScript using WebHID.
The npm package jsdualsense receives a total of 306 weekly downloads. As such, jsdualsense popularity was classified as not popular.
We found that jsdualsense 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.