1.0.3 • Published 6 years ago

firefox-header v1.0.3

Weekly downloads
6
License
ISC
Repository
github
Last release
6 years ago

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);
    }
})()
1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago