get-request-origin
v1.1.0
Published
Get the URL origin from a Node request object.
Downloads
1,445
Readme
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