@talesoft/uri
v0.1.2
Published
@talesoft/uri =============
Downloads
3
Keywords
Readme
@talesoft/uri
A small set of URI utility functions.
Install
// Yarn
yarn add @talesoft/uri
// NPM
npm i @talesoft/uri
TypeScript typings are included (No @types/
package needed)
Usage
import { parse, stringify, resolve } from '@talesoft/uri'
const { scheme, userInfo, host, port, path, query, fragment } = parse(
'https://example.com/some/path?query=test#someFragment'
)
const uri = stringify({ scheme, userInfo, host, port, path, query, fragment })
const fullUri = resolve('https://example.com', '/some/path')