# currentURL
Useimport { currentURL } from 'util-snippets';
/**
* Example:currentURL(); // 'https://medium.com/@fatosmorina'
*/
currentURL();
const currentURL = (): string => window.location.href;
import { currentURL } from 'util-snippets';
/**
* Example:currentURL(); // 'https://medium.com/@fatosmorina'
*/
currentURL();
const currentURL = (): string => window.location.href;