Socket
Socket
Sign inDemoInstall

@princedev/calculate

Package Overview
Dependencies
0
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @princedev/calculate

Fast, lightweight, and extinsible mathematical and statistical functions.


Version published
Maintainers
1
Install size
123 kB
Created

Readme

Source

@princedev/calculate

Fast, lightweight, and extinsible mathematical and statistical functions.

NPM npm bundle size (scoped) npm bundle size (scoped version) Libraries.io dependency status for latest release, scoped npm package NPM

Table of Contents

Installation

This library is available through the npm registry.

NPM

$ npm -i @princedev/calculate

Yarn

$ yarn add @princedev/calculate

Import

Start using it by importing the library first.

CommonJS

const calculate = require('@princedev/calculate');

ES6

import { sum } from '@princedev/calculate';

Usage

Getting the sum of given numbers.

import { sum } from '@princedev/calculate';

sum(12,24);
// output: 36

sum(12,24,36,48,60,72,84,96,108,120,132);
// output: 792

sum(...[12,24,36,48,60,72,84,96,108,120,132]);
// output: 792

Can also be done in this way.

import calculate from '@princedev/calculate';

calculate.sum(12,24);
// output: 36

calculate.sum(12,24,36,48,60,72,84,96,108,120,132)
// output: 792

Read the docs for more.

Authors

See also the list of contributors who participated in this project.

Changelog

Changelog

License

MIT

Keywords

FAQs

Last updated on 25 Jun 2020

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc