JSPM

default-user-agent

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 255518
  • Score
    100M100P100Q232360F
  • License MIT

Default user agent string for nodejs http request

Package Exports

  • default-user-agent

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (default-user-agent) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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