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));
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));
npm i get-current-tab-url
4
1.2.0
MIT