
Security News
Socket Integrates With Bun 1.3’s Security Scanner API
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.
polyfill for requestFullscreen
var fullscreen = require('fullscreen')
, el = document.getElementById('element')
, fs
fs = fullscreen(el)
el.addEventListener('click', function() {
fs.request()
})
document.body.onkeydown = function() {
fs.release()
}
fs.on('attain', function() {
// attained fullscreen
})
fs.on('release', function() {
// released fullscreen
})
fs.on('error', function() {
// fullscreen request failed, or
// fullscreen isn't supported
})
return a boolean yes/no for whether fullscreen api is supported.
return a boolean yes/no for whether fullscreen is enabled for the document.
return a fullscreen event emitter object. if fullscreen is not
available, on the next turn of the event loop it'll emit 'error'
.
issue a request for fullscreen. if it's accepted, it emits 'attain'
, otherwise 'error'
for denial.
release the current fullscreen element. if the fullscreen is released, it emits 'release'
.
removes any event listeners created by the fs
instance once you're done with it.
returns the current fullscreen target, if any.
MIT
FAQs
fullscreen polyfill api that presents an event emitter
The npm package fullscreen receives a total of 1,632 weekly downloads. As such, fullscreen popularity was classified as popular.
We found that fullscreen demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
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.
Security News
A data handling bug in OSV.dev caused disputed CVEs to disappear from vulnerability feeds until a recent fix restored over 500 advisories.