Skip to content

MrRefactoring/nodejs-user-agent

 
 

Repository files navigation

nodejs-user-agent

NPM version npm download

User agent string for Node.js http request.

Based on default-user-agent

Install

$ npm install nodejs-user-agent

Usage

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

About

User agent string for Node.js http requests

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%