New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

system-info-appcd

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

system-info-appcd

Created a React component that displays system information, tracks idle time, and shows a digital clock. This component was then packaged as a standalone npm library, which you configured with necessary dependencies and build scripts. Finally, you publish

  • 0.1.3
  • latest
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

Nadcab Labs Interview Task

Created a React component that displays system information, tracks idle time, and shows a digital clock. This component was then packaged as a standalone npm library, which you configured with necessary dependencies and build scripts. Finally, you published the library to npm, making it available for others to install and use in their own React projects.

Features

”Browser Information: Displays details about the user's browser. “”IP Information: Fetches and displays the user's public IP address. “”Device ID: Generates a unique device ID using FingerprintJS. “”Digital Clock: Shows the current time, synced with the system clock. “”Idle Time Tracking: Tracks and displays the amount of time the user has been idle (no mouse or keyboard activity). “” Session Persistence: Resumes the clock from the last recorded time if the page is closed and reopened.

Installation

npm install react-system-info

Usage

Here's how to use the SystemInfo component in your React project:

“*” Import the Component: Import the SystemInfo component into your React application:

import React from 'react';
import SystemInfo from 'react-system-info';

function App() {
  return (
    <div>
      <h1>My Application</h1>
      <SystemInfo />
    </div>
  );
}

export default App;

“*” Run Your Application: Make sure your React app is running by using:

npm start

License

This project is licensed under the MIT License.

Author

@nadcablabs

Keywords

FAQs

Package last updated on 09 Sep 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc