get-current-tab-url
v1.2.0
Published
Gets the url of the current tab when run from a chrome extension
Downloads
3
Maintainers
Readme
Get current tab url
A simple function for Chrome extensions that returns a promise that resolves to the url of the current tab.
import getCurrentTabUrl from 'get-current-tab-url';
getCurrentTabUrl()
.then(url => console.log(url));