Socket
Socket
Sign inDemoInstall

default-user-agent

Package Overview
Dependencies
5
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    default-user-agent

Default user agent string for nodejs http request


Version published
Weekly downloads
196K
decreased by-16.84%
Maintainers
1
Install size
114 kB
Created
Weekly downloads
 

Readme

Source

default-user-agent

NPM version build status Test coverage Gittip David deps npm download

Default user agent string for Node.js http request

Install

$ npm install default-user-agent

Usage

var ua = require('default-user-agent');

// darwin
console.log(ua()); // 'Node.js/0.11.15 (OS X Yosemite; x64)'
console.log(ua('urllib', '0.0.1')); // 'urllib/0.0.1 Node.js/0.11.15 (OS X Yosemite; x64)'

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

License

MIT

Keywords

FAQs

Last updated on 06 Aug 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc