Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bowser-js/bowser
/ functions
Functions
205 in github.com/bowser-js/bowser
⨍
Functions
205
◇
Types & classes
13
↓ 1 callers
Function
check
(name, fn)
test/package/assertions.cjs:20
↓ 1 callers
Method
compareVersion
(version)
src/parser.js:524
↓ 1 callers
Method
constructor
(UA: string, skipParsing?: boolean)
index.d.ts:51
↓ 1 callers
Function
contains
(a,m)
docs/scripts/search.js:3
↓ 1 callers
Function
createEs5Context
()
test/acceptance/test-es5-runtime.js:41
↓ 1 callers
Function
da
()
docs/scripts/jquery-3.1.1.min.js:2
↓ 1 callers
Function
db
(a,b)
docs/scripts/jquery-3.1.1.min.js:3
↓ 1 callers
Function
eb
(a,b,c)
docs/scripts/jquery-3.1.1.min.js:3
↓ 1 callers
Function
extractNpmTarball
* Extracts an npm tarball using only Node built-ins, so the test needs no * external `tar`/`npm` process and runs identically on every OS and every
test/package/smoke.cjs:54
↓ 1 callers
Function
f
(f,g,h,i,k)
docs/scripts/jquery-3.1.1.min.js:2
↓ 1 callers
Function
gb
(a,b)
docs/scripts/jquery-3.1.1.min.js:3
↓ 1 callers
Method
getAndroidVersionName
* Get Android version name * 1.5 - Cupcake * 1.6 - Donut * 2.0 - Eclair * 2.1 - Eclair * 2.2 - Froyo * 2.x - Ginge
src/utils.js:154
↓ 1 callers
Method
getBrowser
* Get parsed browser object * @return {BrowserDetails} Browser's details
index.d.ts:88
↓ 1 callers
Method
getBrowserName
* Get browser's name * @return {String} Browser's name or an empty string * * @public
src/parser.js:210
↓ 1 callers
Method
getBrowserTypeByAlias
* Get browser name for a short version/alias * * @example * getBrowserTypeByAlias('edge') // Microsoft Edge * * @param {string} brow
src/utils.js:340
↓ 1 callers
Method
getBrowserVersion
* Get browser's version * @return {String} version of browser
index.d.ts:103
↓ 1 callers
Method
getBrowserVersion
* Get browser's version * @return {String} version of browser * * @public
src/parser.js:223
↓ 1 callers
Method
getEngine
* Get parsed engine * @returns {EngineDetails}
index.d.ts:152
↓ 1 callers
Method
getEngine
* Get parsed engine * @return {{}}
src/parser.js:352
↓ 1 callers
Method
getEngineName
* Get parsed engine's name * @returns {String} Engine's name or an empty string
index.d.ts:159
↓ 1 callers
Method
getEngineName
* Get engines's name * @return {String} Engines's name or an empty string * * @public
src/parser.js:366
↓ 1 callers
Method
getHints
* Get Client Hints data * @return {ClientHints|null}
index.d.ts:59
↓ 1 callers
Method
getMacOSVersionName
* Get macOS version name * 10.5 - Leopard * 10.6 - Snow Leopard * 10.7 - Lion * 10.8 - Mountain Lion * 10.9 - Mavericks
src/utils.js:97
↓ 1 callers
Method
getOS
* Get OS * @return {OSDetails} - OS Details * * @example * this.getOS(); // { * // name: 'macOS', * // v
index.d.ts:116
↓ 1 callers
Method
getOSName
* Get OS name * @param {Boolean} [toLowerCase] return lower-cased value * @return {String} name of the OS — macOS, Windows, Linux, etc.
src/parser.js:277
↓ 1 callers
Method
getPlatform
* Get parsed platform * @return {{}}
src/parser.js:299
↓ 1 callers
Method
getPlatformType
* Get platform name * @param {Boolean} [toLowerCase=false] * @return {*}
src/parser.js:312
↓ 1 callers
Method
getVersionPrecision
* Get version precisions count * * @example * getVersionPrecision("1.10.3") // 3 * * @param {string} version * @return {number}
src/utils.js:184
↓ 1 callers
Method
getWindowsVersionName
(version)
src/utils.js:56
↓ 1 callers
Function
hash
(s)
test/types/check.mjs:131
↓ 1 callers
Function
hb
(a,b,c)
docs/scripts/jquery-3.1.1.min.js:3
↓ 1 callers
Method
is
* Is anything? Check if the browser is called "anything", * the OS called "anything" or the platform called "anything" * @param {String} anythin
src/parser.js:594
↓ 1 callers
Method
isBrowser
* Check if the browser name equals the passed string * @param browserName The string to compare with the browser name * @param [includin
index.d.ts:192
↓ 1 callers
Method
isEngine
* Check if the engine name equals the passed string * @param engineName The string to compare with the engine name * @returns {boolean}
index.d.ts:200
↓ 1 callers
Function
j
()
docs/scripts/jquery-3.1.1.min.js:2
↓ 1 callers
Function
ja
(a)
docs/scripts/jquery-3.1.1.min.js:2
↓ 1 callers
Function
ka
(a,b)
docs/scripts/jquery-3.1.1.min.js:2
↓ 1 callers
Function
la
(a,b)
docs/scripts/jquery-3.1.1.min.js:2
↓ 1 callers
Function
mb
(a)
docs/scripts/jquery-3.1.1.min.js:4
↓ 1 callers
Function
nb
(a)
docs/scripts/jquery-3.1.1.min.js:4
↓ 1 callers
Function
nodeAtLeast
Node version gate — ESM was unflagged in 12.17.0.
test/package/assertions.cjs:27
↓ 1 callers
Function
oa
(a)
docs/scripts/jquery-3.1.1.min.js:2
↓ 1 callers
Method
parse
* Parse full information about the browser * @returns {Parser}
src/parser.js:403
↓ 1 callers
Function
present
(ref)
test/acceptance/test-es5-runtime.js:174
↓ 1 callers
Function
scrollToNavItem
()
docs/scripts/nav.js:1
↓ 1 callers
Function
terser
()
tsdown.config.ts:126
↓ 1 callers
Function
timeParse
(ua)
test/unit/redos.js:11
↓ 1 callers
Function
typeCheck
Runs tsc over a single file in a project configured for `mode`.
test/types/check.mjs:103
↓ 1 callers
Function
u
(a)
docs/scripts/prettify/prettify.js:9
↓ 1 callers
Function
ua
(a)
docs/scripts/jquery-3.1.1.min.js:2
↓ 1 callers
Function
umd
(name: string, entry: string, useBuiltIns: false | 'entry')
tsdown.config.ts:148
↓ 1 callers
Function
va
(a,b,c)
docs/scripts/jquery-3.1.1.min.js:2
↓ 1 callers
Function
w
(a)
docs/scripts/jquery-3.1.1.min.js:2
↓ 1 callers
Function
xb
(a,b,c,d)
docs/scripts/jquery-3.1.1.min.js:4
↓ 1 callers
Function
y
(a,b,c)
docs/scripts/jquery-3.1.1.min.js:2
↓ 1 callers
Function
y
(a)
docs/scripts/prettify/prettify.js:4
↓ 1 callers
Function
ya
(a)
docs/scripts/jquery-3.1.1.min.js:2
↓ 1 callers
Function
z
(a,b)
docs/scripts/jquery-3.1.1.min.js:2
↓ 1 callers
Function
za
(a,b)
docs/scripts/jquery-3.1.1.min.js:2
Function
B
(a,b)
docs/scripts/jquery-3.1.1.min.js:2
Method
BROWSER_MAP
()
src/bowser.js:76
Method
ENGINE_MAP
()
src/bowser.js:80
Function
Ea
(a)
docs/scripts/jquery-3.1.1.min.js:3
Function
Fa
(a)
docs/scripts/jquery-3.1.1.min.js:3
Function
M
(a)
docs/scripts/jquery-3.1.1.min.js:2
Function
N
(a)
docs/scripts/jquery-3.1.1.min.js:2
Method
OS_MAP
()
src/bowser.js:84
Method
PLATFORMS_MAP
()
src/bowser.js:88
Function
R
()
docs/scripts/jquery-3.1.1.min.js:2
Function
U
()
docs/scripts/jquery-3.1.1.min.js:3
Function
Ya
(a,b,c,d,e)
docs/scripts/jquery-3.1.1.min.js:3
Function
aa
(a,b,c)
docs/scripts/jquery-3.1.1.min.js:2
Function
bb
()
docs/scripts/jquery-3.1.1.min.js:3
Method
compareVersions
(versionA, versionB, isLoose = false)
src/utils.js:205
Method
constructor
* Create instance of Parser * * @param {String} UA User-Agent string * @param {Boolean|ClientHints} [skipParsingOrHints=false] Either a boole
src/parser.js:34
Function
describe
(ua)
src/parser-os.js:8
Function
describe
()
src/parser-platforms.js:13
Function
describe
(ua)
src/parser-browsers.js:34
Function
describe
(ua)
src/parser-engines.js:13
Function
fb
(a,b,c)
docs/scripts/jquery-3.1.1.min.js:3
Method
getBrandVersion
* Get brand version from Client Hints * @param {string} brandName The brand name to get version for * @return {string|undefined} * * @publ
src/parser.js:130
Method
getBrowserAlias
* Get short version/alias for a browser name * * @example * getBrowserAlias('Microsoft Edge') // edge * * @param {string} browserNam
src/utils.js:327
Method
getHints
* Get Client Hints data * @return {ClientHints|null} * * @public * @example * const parser = Bowser.getParser(UA, clientHints); * co
src/parser.js:93
Method
getOSVersion
* Get OS version * @return {String} full version with dots ('10.11.12', '5.6', etc)
src/parser.js:291
Method
getPlatform
* Get parsed platform * @returns {PlatformDetails}
index.d.ts:138
Method
getPlatformType
* Get platform name * @param {boolean} toLowerCase
index.d.ts:145
Method
getResult
* Get parsed result * @return {ParsedResult}
src/parser.js:416
Method
hasBrand
* Check if a brand exists in Client Hints brands array * @param {string} brandName The brand name to check for * @return {boolean} * * @pu
src/parser.js:109
Method
isEngine
* Check if the engine name equals the passed string * @param {string} engineName The string to compare with the engine name * @returns {boolean}
src/parser.js:583
Method
isOS
* Check if the OS name equals the passed string * @param OSName The string to compare with the OS name * @returns {boolean}
index.d.ts:208
Method
isPlatform
* Check if the platform name equals the passed string * @param platformName The string to compare with the platform name * @returns {boo
index.d.ts:216
Method
matchAndReturnConst
* Match a regexp and return a constant or undefined * @param {RegExp} regexp * @param {String} ua * @param {*} _const Any const that will be
src/utils.js:33
Method
parse
* Creates a {@link Parser} instance and runs {@link Parser.getResult} immediately * * @param {String} UA UserAgent string * @param {Object} [
src/bowser.js:72
Method
parseBrowser
* Get parsed browser object * @returns {BrowserDetails}
index.d.ts:230
Method
parseEngine
* Get parsed engine * @returns {EngineDetails}
index.d.ts:237
Method
parseOS
* Parse OS and save it to this.parsedResult.os * @returns {OSDetails}
index.d.ts:244
Method
parsePlatform
* Get parsed platform * @returns {PlatformDetails}
index.d.ts:251
Function
ra
()
docs/scripts/jquery-3.1.1.min.js:2
Function
renderChunk
(code: string, chunk: { fileName: string })
tsdown.config.ts:93
Method
satisfies
* Check if parsed browser matches certain conditions * * @param {Object} checkTree It's one or two layered object, * which can include a plat
src/parser.js:438
← previous
next →
101–200 of 205, ranked by callers