You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
parttimejob/node_modules/default-user-agent
侯晓宇 0cb2601919
init
10 months ago
..
History.md init 10 months ago
LICENSE.txt init 10 months ago
README.md init 10 months ago
index.js init 10 months ago
package.json init 10 months ago

README.md

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