firefox-header

1.0.3 • Public • Published

firefox-header

Return an Firefox Headers Object used in request module

Method

getFirefoxHeader([win|linux])

return headersObject for 'win' or 'linux'

getFirefoxVersions

Return firefox_versions_object

Use

const {getFirefoxHeader, getFirefoxVersions} = require('firefox-header');
 
(async ()=> {
    let firefoxVersions;
    try {
        firefoxVersions = await getFirefoxVersions();
        const firefoxObject = await getFirefoxHeader('win', firefoxVersions);
        console.log(firefoxObject);
    }catch (e) {
        console.log(e);
    }
})()
 

Readme

Keywords

Package Sidebar

Install

npm i firefox-header

Weekly Downloads

3

Version

1.0.3

License

ISC

Unpacked Size

2.88 kB

Total Files

6

Last publish

Collaborators

  • 0x0a0d