detect-browser node example

node v8.17.0
version: 1.0.0
endpointsharetweet
const { detect } = require('detect-browser'); const browser = detect(); // handle the case where we don't detect the browser if (browser) { console.log(browser.name); console.log(browser.version); console.log(browser.os); }
Loading…

no comments

    sign in to comment