popsicle-user-agent
v1.0.0
Published
Popsicle middleware for setting a default `User-Agent` header
Downloads
530,481
Maintainers
Readme
Popsicle User Agent
Popsicle middleware for setting a default
User-Agentheader.
Installation
npm install popsicle-user-agent --saveUsage
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.
TypeScript
This project is written using TypeScript and publishes the definitions directly to NPM.
License
MIT
