
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@rn-common/device-info
Advanced tools
@rn-common/device-info
This module provides utility functions to retrieve information about the device and the application. It leverages the expo-device
and expo-application
libraries to access various details such as device name, model, operating system, app version, and more.
Install using:
npx expo install @rn-common/device-info expo-application expo-device
getDeviceInfo
Retrieves detailed information about the device.
Returns:
DeviceInfo
: An object containing device-related information.Structure of DeviceInfo
object:
deviceName
(string): The name of the device.modelName
(string): The model name of the device.os
(string): The operating system of the device.osVersion
(string): The version of the operating system.Example:
import { getDeviceInfo } from '@rn-common/device-info'
const deviceInfo = getDeviceInfo()
console.log(deviceInfo)
getAppInfo
Retrieves detailed information about the application.
Returns:
AppInfo
: An object containing application-related information.Structure of AppInfo
object:
name
(string): The name of the application.version
(string): The native version of the application.buildNumber
(string): The native build version of the application.appId
(string): The application ID.Example:
import { getAppInfo } from '@rn-common/device-info'
const appInfo = getAppInfo()
console.log(appInfo)
FAQs
## Overview
The npm package @rn-common/device-info receives a total of 0 weekly downloads. As such, @rn-common/device-info popularity was classified as not popular.
We found that @rn-common/device-info demonstrated a healthy version release cadence and project activity because the last version was released less than 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
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.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.