Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

alibaba-archive/user-agent-composer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

user-agent-composer

Compose user agent for yourself

var Composer = require('user-agent-composer')
new Composer()
  .product('Mozilla', '5.0')
  .os('Macintosh', 'Intel Mac OS X 10_12_4')
  .platform('AppleWebKit', '537.36', 'KHTML, like Gecko')
  .ext('Chrome', '55.0.2883.95')
  .ext('Safari', '537.36')
  .build()
// Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36