Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
get-private-browsing-name
Advanced tools
![npm](https://img.shields.io/npm/v/get-private-browsing-name) ![npm bundle size](https://img.shields.io/bundlephobia/min/get-private-browsing-name) ## Get Private Browsing Name
A micro-package (< 3kb min) that returns the current browser's name for "private browsing" (Incognito/InPrivate/Private Browsing) and phrase displayed when right clicking on a link.
Depending on your package manager of choice
yarn add get-private-browsing-name
, ornpm install get-private-browsing-name
Run yarn test
to see test cases
User Agent | Result |
---|---|
Chrome on macOS | ✅ Pass |
Apple iPhone XR (Safari) | ✅ Pass |
Apple iPhone XS (Chrome) | 🛑 Fail |
Apple iPhone XS Max (Firefox) | 🛑 Fail |
Windows 10-based PC using Edge browser | ✅ Pass |
Windows 7-based PC using a Chrome browser | ✅ Pass |
// Example Running in macOS Chrome
import getPrivateBrowsingName from 'get-private-browsing-name';
console.log(getPrivateBrowsingName());
// Logs the following
// {
// browser: "chrome",
// mode: "Incognito",
// linkMethod: "Open Link in Incognito Window",
// macMethod: 'Command⌘+Shift+p',
// detectedMethod: 'Command⌘+Shift+p',
// windowsMethod: 'Ctrl+Shift+p',
// regex: /(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/
// }
FAQs
![Build Status](https://img.shields.io/github/workflow/status/taitems/get-private-browsing-name/Tests/master) ![npm](https://img.shields.io/npm/dw/get-private-browsing-name) ![npm](https://img.shields.io/npm/v/get-private-browsing-name) ![npm bundle size]
The npm package get-private-browsing-name receives a total of 1 weekly downloads. As such, get-private-browsing-name popularity was classified as not popular.
We found that get-private-browsing-name demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.