npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

vovem-ugo

v2.3.1

Published

Ugo is mathematics an open-source library for JavaScript and Node.js

Readme

Overview of Ugo

Ugo is an advanced mathematics library that will help you perform mathematical operations using Javascript and node.js. The library is super effective and user friendly. Enables the execution of hitherto complex math operations and applies mathematical concepts to solve problems relating to artificial intelligence. It is an open source which invites software developers to evaluate written codes and also contribute opinions. With the Ugo library you are assured of accuracy and efficiency.

Why Ugo?

Ugo makes JavaScript and Node.js easier by taking away the hassle of writing common maths operations. You can use it to perform tasks in these categories below:

Features:

    • Support numbers
    • Use array of numbers
    • Fibonacci
    • Complex numbers
    • Exponentials
    • Run on JavaScript
    • Open source

Utility files

The Ugo library exported as CommonJS.

    • ugo.js : CommonJS

Ugo Library

Ugo enables multi-tasking with an easy workflow.

How to use Ugo

CommonJS

const Ugo  = require('vovem-ugo');

const log = console.log;

const  obj = new Ugo();

// array
const intValue = [1, 2, 3, [4, 5, [6, 7], 8, 9]];

//or
// obj.add([2,5,1]) // 8

// sum the integer values
obj.add(obj.flatten(intValue)); // [1,2,3,4,5,6,7,8,9]
log(`The addition result is: ${obj.sum}`);
log(`The length value is: ${obj.length}`);

// Subtraction
const valueSub = obj.subtract(obj.sum,2);
log(`The subtraction result is: ${valueSub}`);

// Multiplication
const valueMul = obj.multiply(obj.sum,2);
log(`The Multiplication result is: ${valueMul}`);

// Division
const valueDiv = obj.divide(obj.sum,2);
log(`The Division result is: ${valueDiv}`);

// Even number in array
const isEvenNnmber = obj.flatten(intValue);
const resultEv = obj.evenArray(isEvenNnmber);
log(` The even number are : ${resultEv}`);

// Odd number in array
const isOddNnmber = obj.flatten(intValue);
const resultOd = obj.oddArray(isOddNnmber);
log(` The odd number are : ${resultOd}`);

// Exponential
log(`The exponential of 2,4 is : ${obj.exponent(2,4)}`);  // 16

// Power
log(`The Power of 5^3 is : ${obj.power(5,3)}`) // 125

// Modulo (Modulus)
log(`The Modulo of 3 % 2 is : ${obj.modulo(3,2)}`) // 1

// Mean array
log(`The Mean number is : ${obj.meanArray([2,4,5,7,1,8,1])}`); // 4

// Median array
log(`The median number is : ${obj.medianArray([11,16,17,10,2,12,24])}`); // 12

// Mode array
log(`The mode number is : ${obj.modeArray([3,2,5,3,5,5])}`); // 5

// Range array
log(`The Range numbers are : ${obj.rangeArray([3,5,6,8,2,9,2])}`); // 2,9

// // Precision integer
// log(`The Precision numbers is : ${obj.procise(456.789,4)}`); // 8

// // Contain a fibonacci number
// const fibn = [4,6,9,10]; // yes [8,13,21,34]  no [4,6,9,10]
// const l = fibn.length;
// const out = 'Does it contain fibiacci numbers';
// if(obj.isFibonacci(fibn, l)){
//     log(`${out}: Yes`);
// }else{
//     log(`${out}: No`);
// }

// // Fibonacci generator
// log(`Fibonacci numbers : ${obj.fibonacciGenerator(13)}`); // 0,1,1,2,3,5,8,...

// // Array min
// log(`The min number is : ${obj.arrayMin([2,3,4,5,6])}`); // 2

// // Array max
// log(`The max number is : ${obj.arrayMax([2,3,4,5,6])}`); // 6

// // Array Avg
// log(`The max number is : ${obj.arrayAvg([2,3,4,5,6])}`); // 4

Options (JS)

    • Additon
    • Subtraction
    • Multiplication
    • Division
    • Modulus
    • Flatten
    • Even number in array
    • Odd number in array
    • Exponential
    • Power
    • Mean in array
    • Median in array
    • Mode in array
    • Range in array
    • Precision
    • isFibonacci (check if contain)
    • Fibonacci series generator
    • arrayMin
    • arrayMax
    • arrayAvg