Skip to content

Popsicle middleware for setting a default `User-Agent` header

License

Notifications You must be signed in to change notification settings

serviejs/popsicle-user-agent

Repository files navigation

Popsicle User Agent

NPM version NPM downloads Build status Test coverage

Popsicle middleware for setting a default User-Agent header.

Installation

npm install popsicle-user-agent --save

Usage

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

About

Popsicle middleware for setting a default `User-Agent` header

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published