Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
react-camera-media-stream
Advanced tools
Readme
Camera component for React.
Note: Browsers will throw an error if the page is loaded from insecure origin. I.e. Use https.
npm install --save react-camera-media-stream
Props | Type | Default | Details |
---|---|---|---|
max | int | 1920 | max width or height picture |
namePicture | string | "" | name added on left corner picture |
imageCompression | float | 0.8 | quality of picture (0 to 1) |
isConfirm | boolean | false | confirmation after take picture |
onTakePicture | function | click take picture | |
onError | function | on error | |
model | string | "" | model on first plan camera |
marginModel | int | 40 | margin model |
isFullscreen | boolean | false | view in fullscreen (not all navigator are compatible) |
onClose | function | click close view camera | |
isTextMode | boolean | false | button text / button icon |
textCancel | string | "Cancel" | text for button cancel |
textPicture | string | "Take picture" | text for button take picture |
textTorch | string | "Enable torch" | text for button enable/disable torch (not all navigator are compatible) |
textAgain | string | "Retake" | text for button again |
textConfirm | string | "Confirm" | text for button confirm |
import { RCamera } from 'react-camera-media-stream'
import 'react-camera-media-stream/dist/index.css'
<RCamera
model={require('./images/model.png')}
isConfirm={false}
onTakePicture={(data) => console.log(data)}
onError={() => {}}
onClose={() => setTest(false)}
isFullscreen={true}
namePicture="test"
isTorch={true}
/>
MIT © noah-lnt
FAQs
React Camera Media Stream component
The npm package react-camera-media-stream receives a total of 31 weekly downloads. As such, react-camera-media-stream popularity was classified as not popular.
We found that react-camera-media-stream 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.