
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
react-webcam-onfido
Advanced tools
Webcam component for React. See this for browser compatibility.
npm install react-webcam
https://cezary.github.io/react-webcam/examples (if demo doesn't work, check browser compatibility and verify browser is using https)
import React from 'react';
import Webcam from 'react-webcam';
class Component extends React.Component {
render() {
return <Webcam/>;
}
}
prop | type | default | notes |
---|---|---|---|
className | string | '' | CSS class of video element |
audio | boolean | false | enable/disable audio |
height | number | 480 | height of video element |
width | number | 640 | width of video element |
facingMode | string | '' | Facing mode of the camera. It can be user or environment |
screenshotFormat | string | 'image/webp' | format of screenshot |
onUserMedia | function | noop | callback when component receives a media stream |
onFailure | function | noop | Callback in case an error happens, no getUserMedia for example |
function | notes |
---|---|
getScreenshot | returns one frame of the stream |
getCanvas | returns a canvas with the same size as the video element |
startRecording | starts the recording |
stopRecording | stops the recording |
getVideoBlob | returns the video blob for the recorded video |
MIT
1.0.0
preact-compat
to @preact/compat >= 17.*
FAQs
React webcam component
The npm package react-webcam-onfido receives a total of 101 weekly downloads. As such, react-webcam-onfido popularity was classified as not popular.
We found that react-webcam-onfido 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 researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.