get-current-tab-url

1.2.0 • Public • Published

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));

Package Sidebar

Install

npm i get-current-tab-url

Weekly Downloads

4

Version

1.2.0

License

MIT

Last publish

Collaborators

  • rileytomasek