get-request-origin
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

get-origin

Get the URL origin from a Node request object.

Installation

yarn add get-origin

Usage

import { getRequestOrigin } from 'get-request-origin';

getRequestOrigin(myReqObject);
// http://example.com

Readme

Keywords

none

Package Sidebar

Install

npm i get-request-origin

Weekly Downloads

434

Version

1.1.0

License

ISC

Unpacked Size

4.68 kB

Total Files

6

Last publish

Collaborators

  • alexmendes