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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@veert00x/vmath

v1.2.0

Published

basic math and geometry functions made by @VEERT00X

Downloads

1

Readme

.github/workflows/gh-publish.yml .github/workflows/npm-publish.yml

@veert00x/vmath - Basic Math and Geometry Functions

@veert00x/vmath is a lightweight JavaScript module that provides a set of basic math and geometry functions created by the talented developer @VEERT00X. This module is designed to simplify common mathematical operations and calculations in your JavaScript projects.

Table of Contents

Installation

You can easily install @veert00x/vmath using npm or yarn:

npm install @veert00x/vmath
yarn add @veert00x/vmath

Usage

To start using the @veert00x/vmath module in your project, simply import it as follows:

const vmath = require('@veert00x/vmath');

This will give you access to a wide range of math and geometry functions, including summation, averaging, median calculation, subtraction, multiplication, and divisio

Functions

Examples of the functions available in the @veert00x/vmath module include:

  • sum and summation : Functions to calculate the sum of an array of numbers.
  • avg and average : Functions to calculate the average of two or more numbers or array of numbers.
  • med and median : Functions to find the median of two or more numbers or array of numbers.
  • subtract and subtraction : Functions for subtracting two or more numbers or array of numbers.
  • multiply and multiplication : Functions for multiplying two or more numbers or array of numbers.
  • divide and division: Functions for dividing two or more numbers or array of numbers.

To view a comprehensive list of functions available in the @veert00x/vmath module, please refer to the wiki

Examples

Here are some basic examples to demonstrate how to use these functions:

const vmath = require('@veert00x/vmath');

const numbers = [1, 2, 3, 4, 5];

const sumResult = vmath.sum(numbers);
console.log(`Sum: ${sumResult}`);

const avgResult = vmath.avg(numbers);
console.log(`Average: ${avgResult}`);

const medianResult = vmath.median(numbers);
console.log(`Median: ${medianResult}`);

const subtractResult = vmath.subtract(10, 5);
console.log(`Subtraction: ${subtractResult}`);

const multiplyResult = vmath.multiply(3, 7);
console.log(`Multiplication: ${multiplyResult}`);

const divideResult = vmath.divide(20, 4);
console.log(`Division: ${divideResult}`);

Contributing

If you have suggestions, feature requests, or would like to report a bug, please feel free to open an issue on the repository. Contributions and improvements are always welcome.

Information

  • This project is licensed under the MIT License
  • Author: @VEERT00X

Enjoy using @veert00x/vmath in your projects! If you find it helpful, please consider leaving a star on the repository.