Extract only the URI from a path with optional query and fragments.
For example, all these parameters will returns /path:
/path
/path?query=thing
/path#fragment
/path?query=thing#fragment
import { extractPureURI } from '@helpers4/url'console.log(extractPureURI('https://www.google.com/?q=search'))// => 'https://www.google.com/'
var extractPureURI = require('@helpers4/url').extractPureURI;console.log(extractPureURI('https://www.google.com/?q=search'))// => 'https://www.google.com/'
a complete path without server part.
Generated using TypeDoc
Extract only the URI from a path with optional query and fragments.
For example, all these parameters will returns
/path:/path/path?query=thing/path#fragment/path?query=thing#fragmentExample (es module)
Example (commonjs)