{"_id":"fscreen","_rev":"8-fca816eab7d15f4b8fadbcab5b23009f","name":"fscreen","description":"Vendor agnostic access to the fullscreen spec api","dist-tags":{"latest":"1.2.0"},"versions":{"1.0.0":{"name":"fscreen","version":"1.0.0","description":"fullscreen spec api in a vendor agnostic wrapper","main":"lib/index.js","scripts":{"build":"rm -rf lib && babel src -d lib --presets=env","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/rafrex/fscreen.git"},"files":["lib","src"],"keywords":["fullscreen","browser"],"author":{"name":"Rafael Pedicini","email":"code@rafrex.com"},"license":"MIT","bugs":{"url":"https://github.com/rafrex/fscreen/issues"},"homepage":"https://github.com/rafrex/fscreen#readme","devDependencies":{"babel-cli":"^6.24.1","babel-preset-env":"^1.4.0"},"gitHead":"6a2f788c66709d4f3396efa4d0b27faf46582956","_id":"fscreen@1.0.0","_shasum":"212322ee2067c018e9f57b5e16800bf05bba1ccc","_from":".","_npmVersion":"4.2.0","_nodeVersion":"6.9.5","_npmUser":{"name":"rafrex","email":"code@rafrex.com"},"dist":{"shasum":"212322ee2067c018e9f57b5e16800bf05bba1ccc","tarball":"https://registry.npmjs.org/fscreen/-/fscreen-1.0.0.tgz","integrity":"sha512-X0OiXc5SzaMVo4E0pLhbonja0WZynBLu6NmDa7EL/zkIeMBbk449TFBPm1/4HkAnxjnvhiFGkhKZSmY6GgCLvQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDudS/ptBG0QL6yjcefwkn4o4AvWX0AhBDoVA8GwWy9cgIgIjlOzfZp0WaCLgdWVX0dm65xydeQuElKjSwSjTPHU+g="}]},"maintainers":[{"name":"rafrex","email":"code@rafrex.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/fscreen-1.0.0.tgz_1493489927295_0.4876581886783242"},"directories":{}},"1.0.1":{"name":"fscreen","version":"1.0.1","description":"fullscreen spec api in a vendor agnostic wrapper","main":"lib/index.js","scripts":{"build":"rm -rf lib && babel src -d lib --presets=env","prepublish":"npm run build","dev":"npm link && babel src -d lib --watch --presets=env"},"repository":{"type":"git","url":"git+https://github.com/rafrex/fscreen.git"},"files":["lib","src"],"keywords":["fullscreen","browser"],"author":{"name":"Rafael Pedicini","email":"code@rafrex.com"},"license":"MIT","bugs":{"url":"https://github.com/rafrex/fscreen/issues"},"homepage":"https://github.com/rafrex/fscreen#readme","devDependencies":{"babel-cli":"^6.24.1","babel-preset-env":"^1.4.0"},"gitHead":"06853cd4f29a8b6c310e416a3e074153bc5c88c3","_id":"fscreen@1.0.1","_npmVersion":"5.0.2","_nodeVersion":"6.9.5","_npmUser":{"name":"rafrex","email":"code@rafrex.com"},"dist":{"integrity":"sha512-aerFwAhoSvwb+Q3xmcPqzc+zZGAcfW7qcI6uxTtK7qcHL+m64W7X885Vma17ru45kkjVTosKhthCR+LHx8EF7w==","shasum":"7d5c1c02017d9473ccaa86381d4a096502c36429","tarball":"https://registry.npmjs.org/fscreen/-/fscreen-1.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEErixqtwb97WjUSljbgIssRF+bNaQb2R63Qz3TNUpvpAiBo+NZ6k1TVGQS+TvbnGaNkARP2p20DHp9ANlv+uZTRkA=="}]},"maintainers":[{"name":"rafrex","email":"code@rafrex.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fscreen-1.0.1.tgz_1496609162166_0.2444781893864274"},"directories":{}},"1.0.2":{"name":"fscreen","version":"1.0.2","description":"fullscreen spec api in a vendor agnostic wrapper","main":"lib/index.js","scripts":{"build":"rm -rf lib && babel src -d lib --presets=env","prepublish":"npm run build","dev":"npm link && babel src -d lib --watch --presets=env"},"repository":{"type":"git","url":"git+https://github.com/rafrex/fscreen.git"},"files":["lib","src"],"keywords":["fullscreen","browser"],"author":{"name":"Rafael Pedicini","email":"code@rafrex.com"},"license":"MIT","bugs":{"url":"https://github.com/rafrex/fscreen/issues"},"homepage":"https://github.com/rafrex/fscreen#readme","devDependencies":{"babel-cli":"^6.24.1","babel-preset-env":"^1.4.0"},"gitHead":"3254a19afa5e6d63ef5204c4b0dfe489bb92999b","_id":"fscreen@1.0.2","_shasum":"c4c51d96d819d75a19d728e0df445f9be9bb984f","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.1","_npmUser":{"name":"rafrex","email":"code@rafrex.com"},"dist":{"shasum":"c4c51d96d819d75a19d728e0df445f9be9bb984f","tarball":"https://registry.npmjs.org/fscreen/-/fscreen-1.0.2.tgz","integrity":"sha512-hudBE8yfrXZKHwK51aQ1diHBQBCsL08WUQtdW6AvnpfcNrJjqapgo66j3SuqDfMF67if9sWYOmzzKQ0cFdLnbQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEncb/cOCTi9ho93A/jR87t4gw8SCJOzHuVyJxiyJUOTAiBfXEgMlSzeetvRVfkXc80ZQ9yNJvZCeq08tkqsKM1yXA=="}]},"maintainers":[{"name":"rafrex","email":"code@rafrex.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fscreen-1.0.2.tgz_1502754283986_0.32351866993121803"},"directories":{}},"1.1.0":{"name":"fscreen","version":"1.1.0","description":"fullscreen spec api in a vendor agnostic wrapper","main":"lib/index.js","scripts":{"build":"rm -rf lib && babel src -d lib --presets=env","prepublish":"npm run build","dev":"npm link && babel src -d lib --watch --presets=env"},"repository":{"type":"git","url":"git+https://github.com/rafgraph/fscreen.git"},"keywords":["fullscreen","browser"],"author":{"name":"Rafael Pedicini","email":"rafael@rafgraph.dev"},"license":"MIT","bugs":{"url":"https://github.com/rafgraph/fscreen/issues"},"homepage":"https://github.com/rafgraph/fscreen#readme","devDependencies":{"babel-cli":"^6.24.1","babel-preset-env":"^1.4.0"},"gitHead":"d1a5ff3b49729b9ba5495ee2592e56f3cbdb24ff","_id":"fscreen@1.1.0","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"integrity":"sha512-nSRkgHknnCRy7ZBWIu9S4IWe1m/VBROczUEU4RzXK3QvDtc89m79m4e5mbyFSugewgB8ajQKsDzeqaQ8sZ+7hA==","shasum":"80f432f24dc915ba0be0f5f6a7d60ca12ecbab5c","tarball":"https://registry.npmjs.org/fscreen/-/fscreen-1.1.0.tgz","fileCount":5,"unpackedSize":10514,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfW/NxCRA9TVsSAnZWagAAxhwP/ApvqaiPk4f0nMqhaaTm\niXCsUZ8HI/aw5tMlzvIVJZ+e3d7mFsb+rbdxioBwTFjpL5CWTKYz6Wy2izxn\nJPobhI1NQ2Wjk8Luw0Q2w1TZptNMHPuKfJ7m7sLqKyHdC+9OaSKOLkC+s77T\noUDB4oOj0S8Rt0eJjMYzEnxdkTVW14ODQJq8OVfSvxsJ2Od7YsGiVm3yiLMt\nGpgE6ICW/HJaZqWagHImhxx20eHKLT29Zu/1jALJzwltOfky7EPFwFNYuCWy\nSIGOGQfSRTqYGxMhb9i2iRVaziHqV/E1zuPwMeidHT9pBCIvPETlOVQ2FpF2\nhEsU1E3i34ePCzypmVeCoZp5y6HB36y3v+3BAHSH1xieR10uN1KqYUDmc3SZ\nMVZ2H4LHZbzwS3dU5+hs+Si0AOxOPKzWjoKvJU4bPDe4auBVuR0+O9GINBCA\nsyXWBBgFDlMchCjL0+inFk5LPHwK5AMiaq2Yx5C3p4WAgGRHS8/1nkgobxGe\nCFDlyDfZ8C6SRSVu9yks0NB0CmpXxJw/2GWyxb0PMVJSbfzNoj/ZZH/YZjDI\n5xH+YPii10IjdUqmO8hzJugI0ocWylOWX+wsM4bUarDLhJdT5K8fQPKZ7U+n\nz7N4m8Q37TDpR6N8k42citLQurZDmFzpcsGQf658YZY1S0dRnQCBwl6OG7hw\nI2r9\r\n=Pz12\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCK0VYrh9C5jLvGk5pZcyB71dYhjFV2cON+1uml20DW5QIgO8RdvmaNBo7y85RfmVptC7whN5exPj0H6EFcgBdodlQ="}]},"maintainers":[{"name":"rafgraph","email":"rafael@rafgraph.dev"}],"_npmUser":{"name":"rafgraph","email":"rafael@rafgraph.dev"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fscreen_1.1.0_1599861617127_0.9921425958374845"},"_hasShrinkwrap":false},"1.2.0":{"name":"fscreen","version":"1.2.0","description":"Vendor agnostic access to the fullscreen spec api","main":"dist/fscreen.cjs.js","module":"dist/fscreen.esm.js","sideEffects":false,"scripts":{"dev":"npm link && npm run watch","build":"rollpkg build","watch":"rollpkg watch","prepublishOnly":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/rafgraph/fscreen.git"},"keywords":["fullscreen","browser"],"author":{"name":"Rafael Pedicini","email":"rafael@rafgraph.dev"},"license":"MIT","bugs":{"url":"https://github.com/rafgraph/fscreen/issues"},"homepage":"https://github.com/rafgraph/fscreen#readme","devDependencies":{"rollpkg":"^0.4.2"},"gitHead":"dfc86a1844160d68eeacda75f576b19792dccca6","_id":"fscreen@1.2.0","_nodeVersion":"14.15.4","_npmVersion":"7.5.3","dist":{"integrity":"sha512-hlq4+BU0hlPmwsFjwGGzZ+OZ9N/wq9Ljg/sq3pX+2CD7hrJsX9tJgWWK/wiNTFM212CLHWhicOoqwXyZGGetJg==","shasum":"1a8c88e06bc16a07b473ad96196fb06d6657f59e","tarball":"https://registry.npmjs.org/fscreen/-/fscreen-1.2.0.tgz","fileCount":10,"unpackedSize":26587,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgJZ8gCRA9TVsSAnZWagAArOMP/1p0pP91kSRB07iF8pYO\nA4vyh4AcmKiTbM5VtdTcwlPKqutqGH2OXze89ewNHv4PC5i0Ko8RNfOTMSgy\nb5fYgKdtVLJwYazypP3Pp0G0yVrprQ3URlvc80P5bdCQxAW3raKtMvQq/UpB\nPSIdSHQh5mqRarIMHyhG8nm+f5Ve6Ugkq1Ui8qMosmVBzpQRA751rA0M3RKi\nF9M4/QlKpkX5GfyeveBc1DPBDgrxNYsS1kBG2Bp8pn+cCCaS5A0qinMcablK\nY//MTaTfodi9cztNezJWQbJ+Oqj65l7Bdg7wA2++1iQ9DNlyfjvfRwxznAu+\na7Q7QRjVHEmI2Rr4foD6GqF1Vib5NY00ootW5OMoLWdytw+aBSMd9g/n1Vzf\n5/xObA1wN0aT4h8iDwVRZW+0GJbtqnj8YrlmJw8knfLVzJJttF30L26x5IF6\nrvy1USHI5AXSrguFeyQPeBJTVQml+tK7fTj0/u8G1C8QPvwj2AhCWWcjkciN\nwAuDGFe9VQEWtpZ6Ce/2zhy0bYo8Lu8Sm4U1rqZ93hkv6EAbrD1px+fzC/Q1\nFPlMlt6t3w5qxAz0rWLEJMzqhtpqWJZGK9QhAucOdiv4t4H3waEO2G5+pwHs\nI2883m3LneS6CmLKtNHkS8pGleWGtgfKCJn04cUnLVzINjVBALjS0C1b3zMi\n/a4A\r\n=1lX2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA/ZxlZuVQmxzfRsMYJblqOWIO9nzxthQ46fuarTM+XKAiB4ksjRGHOfs0PefttQKF8HM2bzlCPCqpjQuHgoVKGPMg=="}]},"_npmUser":{"name":"rafgraph","email":"rafael@rafgraph.dev"},"directories":{},"maintainers":[{"name":"rafgraph","email":"rafael@rafgraph.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fscreen_1.2.0_1613078304227_0.03566852133096643"},"_hasShrinkwrap":false}},"readme":"# Fscreen - Fullscreen API\n\n[![npm](https://img.shields.io/npm/dm/fscreen?label=npm)](https://www.npmjs.com/package/fscreen)\n\n[Demo website](https://fscreen.rafgraph.dev) (demo code on the [`gh-pages` branch](https://github.com/rafgraph/fscreen/tree/gh-pages))\n\n---\n\nVendor agnostic access to the [Fullscreen API](https://developer.mozilla.org/en-US/docs/Web/API/Fullscreen_API). Build with the Fullscreen API as intended without worrying about vendor prefixes.\n\n```shell\n$ npm install --save fscreen\n```\n\n```javascript\nimport fscreen from 'fscreen';\n\nfscreen.fullscreenEnabled === true / false;\n// boolean to tell if fullscreen mode is supported\n// replacement for: document.fullscreenEnabled\n// mapped to: document.vendorMappedFullscreenEnabled\n\nfscreen.fullscreenElement === null / undefined / DOM Element;\n// null if not in fullscreen mode, or the DOM element that's in fullscreen mode\n// (if fullscreen is not supported by the device it will be undefined)\n// replacement for: document.fullscreenElement\n// mapped to: document.vendorMappedFullsceenElement\n// note that fscreen.fullscreenElement uses a getter to retrieve the element\n// each time the property is accessed.\n\n\nfscreen.requestFullscreen(element);\n// replacement for: element.requestFullscreen()\n// mapped to: element.vendorMappedRequestFullscreen()\n\nfscreen.requestFullscreenFunction(element);\n// replacement for: element.requestFullscreen - without calling the function\n// mapped to: element.vendorMappedRequestFullscreen\n\nfscreen.exitFullscreen();\n// replacement for: document.exitFullscreen()\n// mapped to: document.vendorMappedExitFullscreen()\n// note that fscreen.exitFullscreen is mapped to\n// document.vendorMappedExitFullscreen - without calling the function\n\n\nfscreen.onfullscreenchange = handler;\n// replacement for: document.onfullscreenchange = handler\n// mapped to: document.vendorMappedOnfullscreenchange = handler\n\nfscreen.addEventListener('fullscreenchange', handler, options);\n// replacement for: document.addEventListener('fullscreenchange', handler, options)\n// mapped to: document.addEventListener('vendorMappedFullscreenchange', handler, options)\n\nfscreen.removeEventListener('fullscreenchange', handler, options);\n// replacement for: document.removeEventListener('fullscreenchange', handler, options)\n// mapped to: document.removeEventListener('vendorMappedFullscreenchange', handler, options)\n\n\nfscreen.onfullscreenerror = handler;\n// replacement for: document.onfullscreenerror = handler\n// mapped to: document.vendorMappedOnfullscreenerror = handler\n\nfscreen.addEventListener('fullscreenerror', handler, options);\n// replacement for: document.addEventListener('fullscreenerror', handler, options)\n// mapped to: document.addEventListener('vendorMappedFullscreenerror', handler, options)\n\nfscreen.removeEventListener('fullscreenerror', handler, options);\n// replacement for: document.removeEventListener('fullscreenerror', handler, options)\n// mapped to: document.removeEventListener('vendorMappedFullscreenerror', handler, options)\n\n\nfscreen.fullscreenPseudoClass;\n// returns: the vendorMapped fullscreen Pseudo Class\n// i.e. :fullscreen, :-webkit-full-screen, :-moz-full-screen, :-ms-fullscreen\n// Can be used to find any elements that are fullscreen using the vendorMapped Pseudo Class \n// e.g. document.querySelectorAll(fscreen.fullscreenPseudoClass).forEach(...);\n```\n\n## Usage\n\nUse it just like the spec API.\n\n```javascript\nif (fscreen.fullscreenEnabled) {\n fscreen.addEventListener('fullscreenchange', handler, false);\n fscreen.requestFullscreen(element);\n}\n\nfunction handler() {\n if (fscreen.fullscreenElement !== null) {\n   console.log('Entered fullscreen mode');\n } else {\n   console.log('Exited fullscreen mode');\n }\n}\n```\n","maintainers":[{"name":"rafgraph","email":"rafael@rafgraph.dev"}],"time":{"modified":"2022-06-18T03:57:37.014Z","created":"2017-04-29T18:18:49.076Z","1.0.0":"2017-04-29T18:18:49.076Z","1.0.1":"2017-06-04T20:46:03.000Z","1.0.2":"2017-08-14T23:44:44.891Z","1.1.0":"2020-09-11T22:00:17.254Z","1.2.0":"2021-02-11T21:18:24.368Z"},"homepage":"https://github.com/rafgraph/fscreen#readme","keywords":["fullscreen","browser"],"repository":{"type":"git","url":"git+https://github.com/rafgraph/fscreen.git"},"author":{"name":"Rafael Pedicini","email":"rafael@rafgraph.dev"},"bugs":{"url":"https://github.com/rafgraph/fscreen/issues"},"license":"MIT","readmeFilename":"README.md","users":{"vasilevich":true}}