Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

calculateoee

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

calculateoee

A simple OEE calculator module for Node.js

  • 0.0.1-c
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

calculateoee

A Node.js module to calculate Overall Equipment Effectiveness (OEE) based on runtime, total time, target speed, total produced, and good produced.

Installation Install the module using npm:

npm install calculateoee

Usage To use the calculateoee module, require it in your Node.js code and call the function with the necessary parameters:

const calculateOEE = require('calculateoee');

const runTime = 3600; // seconds const totalTime = 4000; // seconds const targetSpeed = 50; // units per minute const totalProduced = 500; // units const goodProduced = 480; // units

const oee = calculateOEE(runTime, totalTime, targetSpeed, totalProduced, goodProduced);

console.log(The OEE is: ${oee});

The output should be:

The OEE is: 0.864

API calculateOEE(runTime, totalTime, targetSpeed, totalProduced, goodProduced) Calculates the Overall Equipment Effectiveness (OEE) based on the following parameters:

runTime (number) - The amount of time the machine has been running, in seconds. totalTime (number) - The total time the machine should have been running, in seconds. targetSpeed (number) - The target speed of the machine, in units per minute. totalProduced (number) - The total number of units produced by the machine. goodProduced (number) - The number of units produced that meet quality standards. Returns the OEE as a number (float).

Error Handling The calculateOEE function performs error checking to ensure that all parameters passed in are numbers or floats. If any parameter is not a number or float, the function will return an error message.

License This module is licensed under the MIT License.

Keywords

FAQs

Package last updated on 17 Mar 2023

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