UNPKG

@rapharacing/mw-utils

Version:

Middleware Utils

30 lines (19 loc) 810 B
# Middleware Utils Middleware Utils [![TypeScript](https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg)](https://www.typescriptlang.org/) ## [API documentation](https://rapharacing.gitlab.io/rapha-middleware/mw-utils) Generated by [typedoc](https://github.com/TypeStrong/typedoc) ## How to use ```ts import { errorResponse, getRequestConfig, cognitoErrorResponse, formatAuthorizationToken } from "@rapharacing/mw-utils"; const config = await getRequestConfig(url, "get", token); ``` ## License Design tokens are freely distributable under the terms of the [MIT license](https://github.com/rapharacing/design-tokens/blob/develop/Licence). [license-image]: http://img.shields.io/badge/license-MIT-blue.svg?style=flat [license-url]: https://github.com/moment/moment/blob/develop/LICENSE