
Research
/Security News
npm Author Qix Compromised via Phishing Email in Major Supply Chain Attack
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
github.com/Shaked/gomobiledetect
GoMobileDetect is a lightweight package imported from PHP for detecting mobile devices including tablets.
The package is imported from MobileDetect which was originally written in PHP.
$ go get github.com/Shaked/gomobiledetect
Http.Handler
implementation. See examplesThis version introduces a new method IsKey(key int)
. This method is faster than the Is(key string)
. All keys can be found here
The Is(key string)
has been changed to support both string
and int
using the interface{}
.
BenchmarkIsMobile 2000 1001884 ns/op
ok github.com/Shaked/gomobiledetect 7.091s
BenchmarkIsMobile 100000 19278 ns/op
ok github.com/Shaked/gomobiledetect 7.448s
There are different ways of using the package:
Go Mobile Detect is an open-source script released under MIT License.
FAQs
Unknown package
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
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.