Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fielding/firefox-tabs
Get Firefox tab information from sessionstore's recovery.js file.
https://github.com/fielding/firefox-tabs
Last synced: 10 days ago
JSON representation
Get Firefox tab information from sessionstore's recovery.js file.
- Host: GitHub
- URL: https://github.com/fielding/firefox-tabs
- Owner: fielding
- License: bsd-3-clause
- Created: 2016-09-29T08:22:10.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-17T09:53:00.000Z (about 7 years ago)
- Last Synced: 2024-04-27T01:41:01.829Z (7 months ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# firefox-tabs [![Build Status](https://travis-ci.org/justfielding/firefox-tabs.svg?branch=master)](https://travis-ci.org/justfielding/firefox-tabs)[![Coverage Status](https://coveralls.io/repos/github/justfielding/firefox-tabs/badge.svg?branch=master)](https://coveralls.io/github/justfielding/firefox-tabs?branch=master)
> Get Firefox tab information from sessionstore's recovery.js file.## Install
```
$ npm install --save firefox-tabs
```## Usage
```js
const firefoxTabs = require('firefox-tabs');
console.log(firefoxTabs.sync());
/*
{
deviceName: 'sage',
modified: 2016-09-26T18:49:13.682Z,
tabCount: 2,
tabs: [
{
title: 'imbue.studio',
url: 'https://imbue.studio'
},
{
title: 'Google',
url: 'https://www.google.com'
}
]
}
*/
```## API
Tabs are fetched from firefox's `sessionstore-backup` folder for the current profile.### firefoxTabs()
Returns a promise for an array of `devices`.
### firefoxTabs.sync()
Returns an array of `devices`.
## Related
- [firefox-tabs-cli](https://github.com/justfielding/firefox-tabs-cli) - Get Firefox tab information from sessionstore's recovery.js file via command line
## License
BSD 3-Clause © [Fielding Johnston](http://justfielding.com)