# nodejs-user-agent

> User agent string for nodejs http requests

Latest version **1.0.1** (published 2022-04-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install nodejs-user-agent
pnpm add nodejs-user-agent
yarn add nodejs-user-agent
bun add nodejs-user-agent
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2022-04-06 |
| First published | 2021-04-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >= 10.0.0 |
| Dependencies | 1 |
| Unpacked size | 5.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | mrrefactoring |
| Keywords | user-agent, ua, useragent, request, http, node, nodejs |

## Links

- npm: https://www.npmjs.com/package/nodejs-user-agent
- Repository: https://github.com/mrrefactoring/nodejs-user-agent
- Issues: https://github.com/mrrefactoring/nodejs-user-agent/issues
- npm.io page: https://npm.io/package/nodejs-user-agent

## Dependencies (1)

- [os-name](https://npm.io/package/os-name.md) ^4.0.1

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2022-04-06
- 1.0.0 — 2021-04-27

## README

nodejs-user-agent
=======

[![NPM version][npm-image]][npm-url]
[![npm download][download-image]][download-url]

[npm-image]: https://img.shields.io/npm/v/nodejs-user-agent.svg?style=flat-square
[npm-url]: https://npmjs.org/package/nodejs-user-agent
[download-image]: https://img.shields.io/npm/dm/nodejs-user-agent.svg?style=flat-square
[download-url]: https://npmjs.org/package/nodejs-user-agent

User agent string for Node.js http request.

Based on [default-user-agent](https://github.com/node-modules/default-user-agent)

## Install

```bash
$ npm install nodejs-user-agent
```

## Usage

```js
import { ua } from 'nodejs-user-agent';

// darwin
console.log(ua()); // 'Node.js/14.16.1 (macOS Big Sur; x64)'
console.log(ua('urllib', '0.1.1')); // 'urllib/0.1.1 Node.js/14.16.1 (macOS Big Sur; x64)'

// linux
// 'Node.js/14.16.1 (Linux 3.13; x64)'
```

## License

[MIT](LICENSE)

---
_Source: https://npm.io/package/nodejs-user-agent · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
