nodejs-user-agent
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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

/nodejs-user-agent/

    Package Sidebar

    Install

    npm i nodejs-user-agent

    Weekly Downloads

    831

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    5.33 kB

    Total Files

    6

    Last publish

    Collaborators

    • mrrefactoring