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.
@smartbear/browser-info
Advanced tools
Tiny developer-friendly JS library that provides information about host browser
Tiny (~2KB) vanilla JS developers-friendly library that provides information about host browser and OS. A goal of this library isn't creation of the all-knowing and heavy database. Rather focus is to keep is small and light. Eg if you want to focus on major browsers and platforms.
Demo: https://smartbear.github.io/browser-info/
import BrowserInfo from '@smartbear/browser-info'
BrowserInfo.detect(); // if param not given, then it will use navigator.userAgent
console.log(BrowserInfo.name); // print detected browser's name
console.log(BrowserInfo.release); // print detected browser's major release number
console.log(BrowserInfo.version); // print detected browser's version string
console.log(BrowserInfo.os); // print detected OS name
In dist
directory there is a file with .embed
sufix. Importing this library into your UI will cause calling
detect()
method and assigning BrowserInfo
to window.navigator.browserInfo
- this way it is accessible globally.
import '@smartbear/browser-info/dist/smartbear-browser-info.embed.min'
console.log(window.navigator.browserInfo);
This project is licensed under the ISC License - see the LICENSE file for details.
FAQs
Tiny developer-friendly JS library that provides information about host browser
The npm package @smartbear/browser-info receives a total of 86 weekly downloads. As such, @smartbear/browser-info popularity was classified as not popular.
We found that @smartbear/browser-info demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.