![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
bowser-mini
Advanced tools
This is an exact copy of Bowser, except smaller, and only returns something a logger can parse in a much smaller space. Use the below mapper object to translate the short string.
This package is ideal if you're storing log or analytic data.
The string returned is 3 variables, separated by commas.
Variable 1: The Browser/OS/Platform/Engine types.
Variable 2: The Browser version.
Variable 3: The OS version.
cons mapper = {
browser: { // Byte 1
'A': 'Android Browser',
'a': 'Amazon Silk',
'b': 'Bada',
'B': 'BlackBerry',
'C': 'Chrome',
'c': 'Chromium',
'E': 'Electron',
'e': 'Epiphany',
'F': 'Firefox',
'f': 'Focus',
'g': 'Generic',
'G': 'Googlebot',
'S": 'Google Search',
'X': 'Internet Explorer',
'K': 'K-Meleon',
'm': 'Maxthon',
'x': 'Microsoft Edge',
'z': 'MZ Browser',
'n': 'NAVER Whale Browser',
'O': 'Opera',
'o': 'Opera Coast',
'P': 'PhantomJS',
'L': 'Playstation 4',
'p': 'Puffin',
'u': 'QupZilla',
'Q': 'QQ Browser',
'q': 'QQ Browser Lite',
'S': 'Safari',
'1': 'Sailfish',
'2': 'Samsung Internet for Android',
'3': 'SeaMonkey',
'4': 'Sleipnir',
'5': 'Swing',
'6': 'Tizen',
'7': 'UC Browser',
'8': 'Vivaldi',
'9': 'SlimerJS',
'W': 'WebOS Browser',
'w': 'WeChat',
'Y': 'Yandex Browser',
'?': 'Unknown'
},
os: { // Byte 2
'W': 'Windows',
'w': 'Windows Phone',
'M': 'macOS',
'i': 'iOS',
'A': 'Android',
'W': 'WebOS',
'B': 'BlackBerry',
'b': 'Bada',
'T': 'Tizen',
'L': 'Linux',
'C': 'Chrome OS',
'P': 'PlayStation 4',
'R': 'Roku'
},
platforms: { // Byte 3
'T': 'tablet',
'M': 'mobile',
'D': 'desktop',
'V': 'tv'
},
engines: { // Byte 4
'E': 'EdgeHTML',
'B': 'Blink',
'T': 'Trident',
'P': 'Presto',
'G': 'Gecko',
'W': 'WebKit'
}
}
A small, fast and rich-API browser/platform/engine detector for both browser and node.
Don't hesitate to support the project on Github or OpenCollective if you like it ❤️ Also, contributors are always welcome!
The library is made to help to detect what browser your user has and gives you a convenient API to filter the users somehow depending on their browsers.
Version 2.0 has drastically changed the API. All available methods are on the docs page.
For legacy code, check out the 1.x branch and install it through npm install bowser@1.9.4
.
First of all, require the library. This is a UMD Module, so it will work for AMD, TypeScript, ES6, and CommonJS module systems.
const Bowser = require("bowser"); // CommonJS
import * as Bowser from "bowser"; // TypeScript
import Bowser from "bowser"; // ES6 (and TypeScript with --esModuleInterop enabled)
By default, the exported version is the ES5 transpiled version, which do not include any polyfills.
In case you don't use your own babel-polyfill
you may need to have pre-built bundle with all needed polyfills.
So, for you it's suitable to require bowser like this: require('bowser/bundled')
.
As the result, you get a ES5 version of bowser with babel-polyfill
bundled together.
You may need to use the source files, so they will be available in the package as well.
console.log(Bowser.parse(window.navigator.userAgent));
// outputs
"CWDB,79.0.3945.88,NT 10.0"
FAQs
Lightweight browser detector with tiny output
We found that bowser-mini demonstrated a not healthy version release cadence and project activity because the last version was released 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
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.