popsicle-user-agent
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i popsicle-user-agent

Weekly Downloads

95,628

Version

1.0.0

License

MIT

Unpacked Size

8.14 kB

Total Files

9

Last publish

Collaborators

  • blakeembrey