1.2.0 • Published 7 years ago
get-current-tab-url v1.2.0
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));