hexo/node_modules/default-user-agent
jkjoy 9a9cb42f53 20231003 update 2023-10-03 11:14:36 +08:00
..
History.md 20231003 update 2023-10-03 11:14:36 +08:00
LICENSE.txt 20231003 update 2023-10-03 11:14:36 +08:00
README.md 20231003 update 2023-10-03 11:14:36 +08:00
index.js 20231003 update 2023-10-03 11:14:36 +08:00
package.json 20231003 update 2023-10-03 11:14:36 +08:00

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