Narcissistic Pickle Meister
Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

default-user-agent

1.0.0 • Public • Published

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

install

npm i default-user-agent

Downloadsweekly downloads

44,891

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability