universal-user-agent

WebJar for universal-user-agent

License

License

ISC
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

universal-user-agent
Last Version

Last Version

6.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

universal-user-agent
WebJar for universal-user-agent
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/gr2m/universal-user-agent

Download universal-user-agent

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/universal-user-agent/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>universal-user-agent</artifactId>
    <version>6.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/universal-user-agent/
implementation 'org.webjars.npm:universal-user-agent:6.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/universal-user-agent/
implementation ("org.webjars.npm:universal-user-agent:6.0.0")
'org.webjars.npm:universal-user-agent:jar:6.0.0'
<dependency org="org.webjars.npm" name="universal-user-agent" rev="6.0.0">
  <artifact name="universal-user-agent" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='universal-user-agent', version='6.0.0')
)
libraryDependencies += "org.webjars.npm" % "universal-user-agent" % "6.0.0"
[org.webjars.npm/universal-user-agent "6.0.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

universal-user-agent

Get a user agent string in both browser and node

@latest Build Status Greenkeeper

const { getUserAgent } = require("universal-user-agent");
// or import { getUserAgent } from "universal-user-agent";

const userAgent = getUserAgent();
// userAgent will look like this
// in browser: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:61.0) Gecko/20100101 Firefox/61.0"
// in node: Node.js/v8.9.4 (macOS High Sierra; x64)

Credits

The Node implementation was originally inspired by default-user-agent.

License

ISC

Versions

Version
6.0.0
4.0.0
3.0.0
2.1.0
2.0.3