@aws-sdk/util-user-agent-browser

  • Version 3.224.0
  • Published
  • 17.9 kB
  • 3 dependencies
  • Apache-2.0 license

Install

npm i @aws-sdk/util-user-agent-browser
yarn add @aws-sdk/util-user-agent-browser
pnpm add @aws-sdk/util-user-agent-browser

Overview

[![NPM version](https://img.shields.io/npm/v/@aws-sdk/util-user-agent-browser/latest.svg)](https://www.npmjs.com/package/@aws-sdk/util-user-agent-browser) [![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/util-user-agent-browser.svg)](https://www.n

Index

Functions

function defaultUserAgent

defaultUserAgent: ({
serviceId,
clientVersion,
}: DefaultUserAgentOptions) => Provider<UserAgent>;
  • Default provider to the user agent in browsers. It's a best effort to infer the device information. It uses bowser library to detect the browser and version

Package Files (1)

Dependencies (3)

Dev Dependencies (7)

Peer Dependencies (0)

No peer dependencies.

Badge

To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@aws-sdk/util-user-agent-browser.

  • Markdown
    [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@aws-sdk/util-user-agent-browser)
  • HTML
    <a href="https://www.jsdocs.io/package/@aws-sdk/util-user-agent-browser"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>