
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@xslet/platform
Advanced tools
Gets platform informations of a Web browser.
Load this package in a browser:
<script src="xslet.platform.min.js"></script>
Get platform informations:
// On Firefox 48.0 and Window 10.0
xslet.platform.ua.name // => 'FIREFOX'
xslet.platform.ua.version // => '48'
xslet.platform.ua.FIREFOX // => true
xslet.platform.ua.MSIE // => false
xslet.platform.os.name // => 'WINNT'
xslet.platform.os.version // => '10.0'
xslet.platform.os.WINNT // => true
xslet.platform.os.LINUX // => false
Write CSS for each platform:
html.UA-FIREFOX P { background-color: red } /* for Firefox */
html.UA-FIREFOX-48 P { background-color: yellow } /* for Firefox 48 */
html.OS-WINNT P { background-color: blue } /* for Windows */
html.OS-WINNT-10_0 P { background-color: cyan } /* for Windows 10.0 */
This package provides API documents on Github.io or docs/index.html in this package.
This package has been checked the behavior by using this pages on the following platforms:
Platform | Chrome | Firefox | Safari | Edge | IE11 |
---|---|---|---|---|---|
macOS | ◯ | ◯ | ◯ | ◯ | -- |
Windows10 | ◯ | ◯ | -- | ◯ | ◯ |
Linux | ◯ | ◯ | -- | ◯ | -- |
Copyright (C) 2016-2020 Takayuki Sato
This program is free software under MIT License. See the file LICENSE in this distribution for more details.
FAQs
Gets platform informations from browser's user agent.
The npm package @xslet/platform receives a total of 9 weekly downloads. As such, @xslet/platform popularity was classified as not popular.
We found that @xslet/platform 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.