New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

fan-time

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fan-time

Fetch and monitor fan.voidium.uk fan time and stats

latest
npmnpm
Version
1.3.0
Version published
Maintainers
1
Created
Source

use it like this i got nothing else to say

const FanTime = require('fan-time'); // or 'fan-time' if installed via npm

// Create a FanTime instance with 2-second polling interval
const fan = new FanTime({ interval: 2000 });

(async () => {
  console.log('--- ONE-TIME FETCH ---');

  // Fetch raw data
  const rawData = await fan.fetchRaw();
  console.log('Raw fan data:', rawData);

  // Get individual fields
  const time = await fan.getTime();
  const rpm = await fan.getRPM();
  const pulsesPerSecond = await fan.getPulsesPerSecond();

  console.log('Fan Time:', time);
  console.log('RPM:', rpm);
  console.log('Pulses/s:', pulsesPerSecond);

  console.log('\n--- START POLLING ---');

  // Start polling with a callback
  fan.startPolling(data => {
    console.log('Updated fan data:', data);
  });

  // Stop polling after 10 seconds
  setTimeout(() => {
    fan.stopPolling();
    console.log('Polling stopped.');
  }, 10000);
})();

Keywords

fan

FAQs

Package last updated on 24 Aug 2025

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