JSPM

popsicle-user-agent

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 111441
  • Score
    100M100P100Q168799F
  • License MIT

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

Package Exports

  • popsicle-user-agent

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (popsicle-user-agent) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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