web-extension-tab-manager
v1.0.0
Published
- Node.JS версии 14 и выше - yarn первой версии, последний стабильный релиз
Downloads
15
Maintainers
Readme
Системные требования
- Node.JS версии 14 и выше
- yarn первой версии, последний стабильный релиз
Как использовать
По умолчанию:
import TabManager from 'web-extension-tab-manager';
const tabs = new TabManager();
const result: Tabs.Tab[] | null = await this.tabs.getAlltabs();
console.log('Tabs', result);
Следить за изменением фокуса окон:
import TabManager from 'web-extension-tab-manager';
const tabs = new TabManager({
winWatch: true,
});
const result: Tabs.Tab | null = await this.tabs.getCurrentTab();
console.log('Tabs', result);
Документация
- Перейдите в папку /docs
- Откройте index.html
Разработка
Изменения
- Используйте
yarn link
для связки модуля с проектом. - Если вы изменили методы, обновите jsdoc и запустите
yarn docs
Сборка и тестирование
yarn build
Сборка production билда
yarn watch
Отсдеживание изменений кода и их сборка
yarn link
Запуск eslint
yarn prettier
Запуск prettier
yarn lint
Запуск unit тестов