
Security News
CISA Extends MITRE Contract as Crisis Accelerates Alternative CVE Coordination Efforts
CISA extended MITRE’s CVE contract by 11 months, avoiding a shutdown but leaving long-term governance and coordination issues unresolved.
platform-detect
Advanced tools
🃏 Minimalistic isomorphic library for detection of platform, runtime, APIs and more.
🃏 Minimalistic isomorphic library for detection of platform, runtime, APIs and more.
Detects Browsers, Node, Electron, NW.JS, PWA, UWP, Web workers and child processes.
npm install platform-detect
import platform from 'platform-detect'
// The script has no window or GUI to render content to.
// It only runs in console / terminal. (Might be a Node script or WebWorker)
platform.console
// App has a window, access to DOM. Can render GUI.
platform.window
// Fully functional Node & core modules are available. (Might be an Electron / NWJ.JS app or a Node console script)
platform.node
// App has been loaded as a plain website in a browser.
platform.web
// Script is executed inside Web Worker.
platform.worker
// App has been loaded as a PWA / UWP / Electron / NW.JS / Cordova app
platform.pwa
platform.uwp
platform.electron
platform.nwjs
platform.cordova
FAQs
🃏 Minimalistic isomorphic library for detection of platform, runtime, APIs and more.
The npm package platform-detect receives a total of 3,457 weekly downloads. As such, platform-detect popularity was classified as popular.
We found that platform-detect 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.
Security News
CISA extended MITRE’s CVE contract by 11 months, avoiding a shutdown but leaving long-term governance and coordination issues unresolved.
Product
Socket's Rubygems ecosystem support is moving from beta to GA, featuring enhanced security scanning to detect supply chain threats beyond traditional CVEs in your Ruby dependencies.
Research
The Socket Research Team investigates a malicious npm package that appears to be an Advcash integration but triggers a reverse shell during payment success, targeting servers handling transactions.