All Projects → unjs → requrl

unjs / requrl

Licence: other
Grab full URL from request.

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to requrl

utils.js
👷 🔧 zero dependencies vanilla JavaScript utils.
Stars: ✭ 14 (-17.65%)
Mutual labels:  url
URL-Magnet-Cloud-Uploader-Heroku
Aria 2 Rclone Remote URL /magnet Clouds upload via HEROKU
Stars: ✭ 99 (+482.35%)
Mutual labels:  url
anikimiapi
A Simple, LightWeight, Statically-Typed Python3 API wrapper for GogoAnime.
Stars: ✭ 15 (-11.76%)
Mutual labels:  url
Re-skinning url splitter
Divide / Split your WordPress Blog visitors into 4 links by using Re-skinning URL splitter
Stars: ✭ 73 (+329.41%)
Mutual labels:  url
wumpfetch
🚀🔗 A modern, lightweight, fast and easy to use Node.js HTTP client
Stars: ✭ 20 (+17.65%)
Mutual labels:  url
doi2bib
📝 Easily convert Digital Object Identifier (DOI) and Uniform Resource Locator (URL) to BibTeX and DOI to plain text.
Stars: ✭ 28 (+64.71%)
Mutual labels:  url
web-clipper
Easily download the main content of a web page in html, markdown, and/or epub format from command line.
Stars: ✭ 15 (-11.76%)
Mutual labels:  url
urley
📦 An easy cross-platform utility library to work with URLs in Javascript.
Stars: ✭ 14 (-17.65%)
Mutual labels:  url
quill-magic-url
Automatically convert URLs to links in Quill
Stars: ✭ 86 (+405.88%)
Mutual labels:  url
node-parameterize
parameterize.js
Stars: ✭ 36 (+111.76%)
Mutual labels:  url
URLQueryItemEncoder
A Swift Encoder for encoding any Encodable value into an array of URLQueryItem.
Stars: ✭ 60 (+252.94%)
Mutual labels:  url
UrlCombine
C# util for combining Url paths. Works similarly to Path.Combine.
Stars: ✭ 23 (+35.29%)
Mutual labels:  url
Slugify
Simple Slug / Clean URL generator helper for Microsoft .NET framework / .NET Standard.
Stars: ✭ 53 (+211.76%)
Mutual labels:  url
urlshortener-rs
A very-very simple url shortener for Rust
Stars: ✭ 34 (+100%)
Mutual labels:  url
uri-parse-lib
Library for parse URI
Stars: ✭ 24 (+41.18%)
Mutual labels:  url
ocaml-uri
RFC3986 URI parsing library for OCaml
Stars: ✭ 85 (+400%)
Mutual labels:  url
git-repo-name
Get the repository name from the git remote origin URL
Stars: ✭ 21 (+23.53%)
Mutual labels:  url
cpplipa
C++ library package
Stars: ✭ 17 (+0%)
Mutual labels:  url
trym
🔗 A modern URL shortener
Stars: ✭ 29 (+70.59%)
Mutual labels:  url
postcss-inline-base64
PostCSS plugin used to replace value inside of url function to base64
Stars: ✭ 23 (+35.29%)
Mutual labels:  url

requrl

npm dt bundlephobia

Grab full URL from request.

Features

  • Universal (browser and node.js) support
  • Detect HTTPS requests using is-https
  • Support x-forwarded-proto and x-forwarded-host
  • Always encode URI
  • Super Small

Usage

import getURL from 'requrl'
// OR
const getURL = require('requrl')

Function signuture is:

function getURL(req?: IncomingMessage, includePath?: boolean): string

Example:

const url = getURL(req)
// http://localhost:3000
// https://www.foo.com

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].