package
Popsicle middleware for setting a default `User-Agent` header
npm install popsicle-user-agentGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 1 packages.
7.9 kB
Includes dependencies.
Popsicle middleware for setting a default
User-Agentheader.
npm install popsicle-user-agent --saveimport { 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