1.2.2 • Published 1 year ago
yola-bowser v1.2.2
yola-bowser
The library that helps to detect platform/OS/browser and other useful information available from window.navigator.userAgent. It relies on the Bowser version 2+, and provides a custom API which based on boolean flags. Library does not include any polyfills.
yola-bowser usage:
- Import the library:
- Start using self-descriptive boolean flags to perform needed checks.
import yolaBowser from 'yola-bowser';
const isSafari = yolaBowser.safari;
const isLinux = yolaBowser.linux;
const isMobile = yolaBowser.mobile;Available Flags
Browser flags:
chromechromiumedgefirefoxieoperasafari
OS flags:
androidiosiPadOS- Separate flag for the new iPad OS.linuxmacOS- Desktop Mac, but not the new iPad OS.windowschromeOS
Platform flags:
mobile- All detected mobile OSes, unless it's a tablet.tablet- Tablet device either on mobile OS, or the new iPad OS.desktop- Desktop OSes, but not the new iPad OS.
yola-bowser development:
- Run
npm installandnpm run dev:watchto start a local server with the sandbox. - New browser tab will be opened automatically on
http://localhost:9000/. - There you can see the list of all flags values provided by the
yola-bowseraccording to your environment.
1.2.2
1 year ago
1.2.1
1 year ago
1.2.1-maleks.rc.1
1 year ago
1.2.0
3 years ago
1.2.0-rc.sereezha.2
3 years ago
1.1.1
6 years ago
1.1.0-rc.art.1
6 years ago
1.1.0
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.1-rc.1
6 years ago
1.0.0
6 years ago
1.0.0-rc.6
6 years ago
1.0.0-rc.5
6 years ago
1.0.0-rc.4
6 years ago
1.0.0-rc.3
6 years ago
1.0.0-rc.1
6 years ago