Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
webrtcsupport
Advanced tools
Browser module to detect support for webrtc and extract proper constructors.
A tiny browser module for detecting support for WebRTC and also for extracting the necessary constructors such as PeerConnection
, SessionDescription
, and IceCandidate
.
Suitable for use with browserify/CommonJS on the client.
If you're not using browserify or you want AMD support use webrtcsupport.bundle.js
.
This tiny module is used by SimpleWebRTC, but obviously can be used by itself.
npm install webrtcsupport
Simply require it and it returns a simple object with support flags and useful support info and normalized constructors for various WebRTC related items.
var webrtcSupport = require('webrtcsupport');
// it returns an object with the following:
{
support: // boolean whether basic WebRTC support exists
supportRTCPeerConnection: // boolean whether basic support for RTCPeerConnection exists
supportVp8: // boolean guess whether VP8 is supported by the browser
supportGetUserMedia: // boolean whether getUserMedia is supported by the browser
supportDataChannel: // boolean whether WebRTC data channels are supported
supportWebAudio: // boolean whether WebAudio API is supported
supportMediaStream: // boolean whether MediaStream is supported
supportScreenSharing: // boolean guess of whether screensharing is supported,
prefix: // returns browser prefix (either moz or webkit for now)
AudioContext: // the audio context constructor from the web audio API
PeerConnection: // constructor for creating a peer connection
SessionDescription: // constructor for RTCSessionDescriptions
IceCandidate: // constructor for ice candidate
getUserMedia: // getUserMedia function
}
MIT
If you like this, follow: @HenrikJoreteg on twitter.
FAQs
Browser module to detect support for webrtc and extract proper constructors.
The npm package webrtcsupport receives a total of 848 weekly downloads. As such, webrtcsupport popularity was classified as not popular.
We found that webrtcsupport demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.