Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
calculateoee
Advanced tools
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.
FAQs
A simple OEE calculator module for Node.js
We found that calculateoee 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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.