Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
calculateoee
Advanced tools
CalculateOEE is a Node.js module that provides a simple way to calculate the Overall Equipment Effectiveness (OEE) of a manufacturing process. OEE is a measure of how effectively a manufacturing operation is utilized and can help identify areas for improvement in terms of productivity, quality, and availability.
Installation To use CalculateOEE in your Node.js project, you can install it via npm:
npm install calculateoee
Usage To use the CalculateOEE module, you can require it in your Node.js project:
const calculateOEE = require('calculateoee');
Once you have required the module, you can use the calculateOEE function to calculate the OEE of your manufacturing process. The function takes in an object with three properties: availability, performance, and quality.
const oee = calculateOEE({ availability: 0.8, performance: 0.9, quality: 0.95 });
The availability, performance, and quality properties represent the percentage of time that the process was available, the percentage of the process that was performed at the expected rate, and the percentage of good parts produced, respectively.
The calculateOEE function returns a decimal value representing the OEE of the manufacturing process. You can convert this decimal to a percentage by multiplying it by 100.
const oeePercentage = oee * 100;
Example
const calculateOEE = require('calculateoee');
const oee = calculateOEE({ availability: 0.8, performance: 0.9, quality: 0.95 });
const oeePercentage = oee * 100;
console.log(OEE: ${oeePercentage}%
);
Output:
OEE: 68.4%
Contributing If you have any issues or feature requests, feel free to contact me - harshad@bufferstack.io . Any contributions are welcome!
License CalculateOEE is MIT licensed.
FAQs
A simple OEE calculator module for Node.js
The npm package calculateoee receives a total of 4 weekly downloads. As such, calculateoee popularity was classified as not popular.
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
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.