Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
react-native-usb-serialport-for-android
Advanced tools
React Native USB serialport module for Android platform based on mik3y/usb-serial-for-android
npm install react-native-usb-serialport-for-android --save
import { UsbSerialManager, Parity, Codes } from "react-native-usb-serialport-for-android";
// ...
const devices = await UsbSerialManager.list();
try {
await UsbSerialManager.tryRequestPermission(2004);
const usbSerialport = await UsbSerialManager.open(2004, { baudRate: 38400, parity: Parity.None, dataBits: 8, stopBits: 1 });
const sub = usbSerialport.onReceived((event) => {
console.log(event.deviceId, event.data);
});
// unsubscribe
// sub.remove();
await usbSerialport.send('00FF');
usbSerialport.close();
} catch(err) {
console.log(err);
if (err.code === Codes.DEVICE_NOT_FOND) {
// ...
}
}
See documentation for details.
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
FAQs
react-native-usb-serialport-for-android
The npm package react-native-usb-serialport-for-android receives a total of 355 weekly downloads. As such, react-native-usb-serialport-for-android popularity was classified as not popular.
We found that react-native-usb-serialport-for-android 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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.