0.1.5 • Published 5 years ago

mozilla-sessionstore-taburls v0.1.5

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

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

0.1.5

5 years ago

0.1.4

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago