mozilla-sessionstore-taburls
v0.1.5
Published
Extract the URLs of currently open tabs from a Firefox sessionstore backup.
Downloads
4
Readme
mozilla-sessionstore-taburls
Extract the URLs of currently open tabs from a Firefox sessionstore backup.
Usage
var findTabUrls = require('mozilla-sessionstore-taburls');
fs.readFile(inputFile, function (err, lz4Buffer) {
if (err) { throw err; }
var tabUrls = findTabUrls(lz4Buffer, parseOpt);
if (tabUrls.length < 1) { return; }
console.log(tabUrls.join('\n'));
});
parseOpts
… is an optional options object which supports these options, all optional:
history
:true
: Report all tab history entries.false
: Report only the history entry currently displayed in that tab.- other values: reserved for future features
prepareData
: Should be a false-y value, or a function. In the latter case, the function is called with the decoded session data. If the function returns a true-y value, work with that instead of the original session data.
Known issues
- Needs more/better tests and docs.
License
ISC