
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
rn-device-logger
Advanced tools
React Native logger for real devices without the needs to enable Debug JS Remotely & JS Dev Mode to maximize app performance.
React Native logger for real devices without the needs to enable 'Debug JS Remotely' & 'JS Dev Mode' to maximize app performance.
$ npm install rn-device-logger --save
$ npm install -g npm-run
Start logger server:
$ cd [YOUR_PROJECT]
(Ex: $ cd /User/ducth/mighty-rn)
$ npm-run logger
// index.js or app.js or wherever you want
import RNDeviceLogger from "rn-device-logger";
/**
* Host address or IP address of dev machine that project is running on.
* Usually same address of your debug host server that you config on real device
*/
const DEBUG_URL = "http://192.168.2.69";
RNDeviceLogger.logDebug(DEBUG_URL, obj); // Log debug (blue color tag)
RNDeviceLogger.logError(DEBUG_URL, obj); // Log error (red color tag)
// Example usage: define function in window to use anywhere in project without import. I'm lazy at writing import statement everytime :))
window.log = obj => {
console.log(obj);
RNDeviceLogger.logDebug(DEBUG_URL, obj);
};
Open web browser and type: [HOST_ADDRESS]:8181 (React Native run on port 8081 so I pick 8181 ).
Ex: http://192.168.2.69:8181 (or localhost:8181 if you open browser in same machine)
Your logs will be there, JSON will be pretty formatted.
FAQs
React Native logger for real devices without the needs to enable Debug JS Remotely & JS Dev Mode to maximize app performance.
The npm package rn-device-logger receives a total of 0 weekly downloads. As such, rn-device-logger popularity was classified as not popular.
We found that rn-device-logger 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
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.