$ npm install popsicle-user-agent
Popsicle middleware for setting a default
User-Agentheader.
npm install popsicle-user-agent --save
import { userAgent } from "popsicle-user-agent";
const middleware = compose([userAgent(), transport()]);
The only argument is the argument to set as the User-Agent, defaults to Popsicle.
This project is written using TypeScript and publishes the definitions directly to NPM.
MIT
© 2010 - cnpmjs.org x YWFE | Home | YWFE