Using a database of 10,000 different user agents, this package will return random user-agent for the header.
How to use:
npm install new-user-agent
const useragent = require('new-user-agent')
useragent() //Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.155 Safari/537.36