My first npm package: all-round-calculatpr

Overview

all-round-calculator

An npm library package to calculate everything you want.

GitHub top language

  • Check out our npm package on npmjs.org.
  • Check out the documentation here.

Contributing 👨‍💻

  • Contributions make the open source community such an amazing place to learn, inspire, and create.
  • Any contributions you make are greatly appreciated.
  • Check out our contribution guidelines for more information.

License 🛡️

all-round-calculator is licensed under the MIT License - see the LICENSE file for details.

Thanks to all Contributors 💪

Thanks a lot for spending your time helping all-round-calculator grow. Thanks a lot! Keep rocking 🍻

Contributors

Support 🙏

This project needs a ⭐️ from you. Don't forget to leave a star . Also feel free to sponsor us.

Comments
  • Several functions are not exported from index.js

    Several functions are not exported from index.js

    Name

    Amaan Ahmad

    Describe your Issue

    Do Factorial is not exported from index.js

    here is a snippet from index.js
    reference

    const doFactorial = require("./Functions/Factorial");
    

    but like all other functions, this function is not exported

    You can verify this by trying out the following code, it will result in an error.

    const calculator = require('all-round-calculator');
    console.log(calculator.dofactorial(5));
    
    bug enhancement good first issue 
    opened by amaan-ahmad 5
  • Use the Rest Parameter with functions doAddN() and doMultN()

    Use the Rest Parameter with functions doAddN() and doMultN()

    Describe your Issue

    I think it would be better if we pass the rest parameter with these two functions, rather than the array. Then we can do this:

    console.log(calculator.doAddN(5,7,12,13));
    

    rather than this:

    console.log(calculator.doAddN([5,7,12,13]));
    

    This would seem more logical as we are multiplying or adding multiple individual numbers, rather than the content of an array.

    enhancement 
    opened by swapn652 4
  • Make the function timeCalc return an array

    Make the function timeCalc return an array

    [https://github.com/Susmita-Dey/all-round-calculator/blob/main/package/index.js](Link to the file) ### Line number 181

    if the timeCalc function is set to return an array instead of a string, the user can implement the data in the code as per requirement, which in case of an hard-coded string makes it difficult.

    enhancement help wanted question 
    opened by SteveSayantan 4
  • Change doAddN and doMulN functions code and related comments

    Change doAddN and doMulN functions code and related comments

    Related Issue

    Functions doAddN() and doMultN() take an array as argument but their job is to add and multiple multiple numbers respectively. So, using the rest argument would be more relevant here.

    Closes: #28

    Describe the changes you've made

    I changed code and some comments related to those two functions.

    Type of change

    What sort of change have you made:

    • [ ] Bug fix (non-breaking change which fixes an issue)
    • [ ] New feature (non-breaking change which adds functionality)
    • [x] Code style update (formatting, local variables)
    • [x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
    • [x] This change requires a documentation update

    How Has This Been Tested?

    Checklist

    • [x] My code follows the guidelines of this project.
    • [x] I have performed a self-review of my own code.
    • [x] I have commented on my code, particularly wherever it was hard to understand.
    • [x] I have made corresponding changes to the documentation.
    • [x] My changes generate no new warnings.
    • [ ] I have added tests that prove my fix is effective or that my feature works.
    • [ ] Any dependent changes have been merged and published in downstream modules.

    Screenshots (if applicable)

    opened by swapn652 3
  • add method to calculate power of a number

    add method to calculate power of a number

    Related Issue

    Closes: #50

    Describe the changes you've made

    • Added a method doPower which accepts two arguments: base and exponent and then returns the value of base ^ exponent

    Type of change

    What sort of change have you made:

    • [ ] Bug fix (non-breaking change which fixes an issue)
    • [x] New feature (non-breaking change which adds functionality)
    • [ ] Code style update (formatting, local variables)
    • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
    • [x] This change requires a documentation update

    How Has This Been Tested?

    • By running a few test cases on local

    Checklist

    • [x] My code follows the guidelines of this project.
    • [x] I have performed a self-review of my own code.
    • [x] I have commented on my code, particularly wherever it was hard to understand.
    • [x] I have made corresponding changes to the documentation.
    • [x] My changes generate no new warnings.
    • [ ] I have added tests that prove my fix is effective or that my feature works.
    • [ ] Any dependent changes have been merged and published in downstream modules.
    enhancement hacktoberfest-accepted approved 
    opened by ays14 2
  • feat: added logarithmic function value in package

    feat: added logarithmic function value in package

    Related Issue

    Added logarithmic function value in the package.

    Closes: #45

    Describe the changes you've made

    Added log package in the index.js.

    Type of change

    What sort of change have you made:

    • [ ] Bug fix (non-breaking change which fixes an issue)
    • [x] New feature (non-breaking change which adds functionality)
    • [ ] Code style update (formatting, local variables)
    • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
    • [ ] This change requires a documentation update

    How Has This Been Tested?

    Tested in console.

    Checklist

    • [x] My code follows the guidelines of this project.
    • [x] I have performed a self-review of my own code.
    • [x] I have commented on my code, particularly wherever it was hard to understand.
    • [ ] I have made corresponding changes to the documentation.
    • [x] My changes generate no new warnings.
    • [ ] I have added tests that prove my fix is effective or that my feature works.
    • [ ] Any dependent changes have been merged and published in downstream modules.

    Screenshots (if applicable)

    enhancement hacktoberfest-accepted approved 
    opened by bhattabhi013 2
  • Add days left

    Add days left

    Signed-off-by: parshviSri [email protected]

    Related Issue

    • Information about the related issue

    Closes: #31

    Describe the changes you've made

    Type of change

    What sort of change have you made:

    • [ ] Bug fix (non-breaking change which fixes an issue)
    • [ x] New feature (non-breaking change which adds functionality)
    • [ ] Code style update (formatting, local variables)
    • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
    • [ ] This change requires a documentation update

    How Has This Been Tested?

    Checklist

    • [ x] My code follows the guidelines of this project.
    • [ x] I have performed a self-review of my own code.
    • [x ] I have commented on my code, particularly wherever it was hard to understand.
    • [ ] I have made corresponding changes to the documentation.
    • [x ] My changes generate no new warnings.
    • [ ] I have added tests that prove my fix is effective or that my feature works.
    • [ ] Any dependent changes have been merged and published in downstream modules.

    Screenshots (if applicable)

    opened by parshviSri 2
  • dynamic value for doInc() and doDecr()

    dynamic value for doInc() and doDecr()

    Name

    Rahmat Sulistio

    Describe your Issue

    The doInc() and doDecr() functions must have dynamic value to increment/decrement. For example, if we want to increment/decrement with 3, we do not have to call the function 3 times, just pass the value. But the function still has the default value of 1.

    Do you need it? Can I work for it?

    enhancement hacktoberfest 
    opened by rahmat-dev 2
  • Added title and favicon

    Added title and favicon

    Related Issue

    • Information about the related issue

    Added Favicon and Title

    Describe the changes you've made

    I have added the Title to the project : All Round Calculator and favicon img (icon.svg)

    Type of change

    What sort of change have you made:

    • [ ] Bug fix (non-breaking change which fixes an issue)
    • [x] New feature (non-breaking change which adds functionality)
    • [ ] Code style update (formatting, local variables)
    • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
    • [ ] This change requires a documentation update

    How Has This Been Tested?

    Checklist

    • [x] My code follows the guidelines of this project.
    • [x] I have performed a self-review of my own code.
    • [ ] I have commented on my code, particularly wherever it was hard to understand.
    • [ ] I have made corresponding changes to the documentation.
    • [x] My changes generate no new warnings.
    • [ ] I have added tests that prove my fix is effective or that my feature works.
    • [ ] Any dependent changes have been merged and published in downstream modules.

    Screenshots (if applicable)

    opened by sanathan-git 2
  • Real time values for currency conversion

    Real time values for currency conversion

    Related Issue

    Using real time values for currency-conversion instead of using hard-coded values. Closes: #22

    Describe the changes you've made

    Used Axios to fetch the live currency conversion rates and then use them to convert the value specified by the user.

    Type of change

    What sort of change have you made:

    • [ ] Bug fix (non-breaking change which fixes an issue)
    • [X] New feature (non-breaking change which adds functionality)
    • [ ] Code style update (formatting, local variables)
    • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
    • [X] This change requires a documentation update

    How Has This Been Tested?

    • Ran npm link and npm link all-round-calculator and installed the package with no errors
    • Tried running the function changed locally and verified the output

    Checklist

    • [X] My code follows the guidelines of this project.
    • [X] I have performed a self-review of my own code.
    • [X] I have commented on my code, particularly wherever it was hard to understand.
    • [X] I have made corresponding changes to the documentation.
    • [X] My changes generate no new warnings.
    • [X] Any dependent changes have been merged and published in downstream modules.
    enhancement hacktoberfest hacktoberfest-accepted approved 
    opened by EshaanAgg 2
  • feat: added generate random number functionality

    feat: added generate random number functionality

    Related Issue

    • Information about the related issue

    Closes: #51

    Describe the changes you've made

    Added functionality to generate random number between 1-1000.

    Type of change

    What sort of change have you made:

    • [ ] Bug fix (non-breaking change which fixes an issue)
    • [x] New feature (non-breaking change which adds functionality)
    • [ ] Code style update (formatting, local variables)
    • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
    • [ ] This change requires a documentation update

    How Has This Been Tested?

    Checklist

    • [x] My code follows the guidelines of this project.
    • [x] I have performed a self-review of my own code.
    • [x] I have commented on my code, particularly wherever it was hard to understand.
    • [x] I have made corresponding changes to the documentation.
    • [x] My changes generate no new warnings.
    • [ ] I have added tests that prove my fix is effective or that my feature works.
    • [ ] Any dependent changes have been merged and published in downstream modules.

    Screenshots (if applicable)

    enhancement hacktoberfest-accepted approved 
    opened by bhattabhi013 1
  • Add getLogValue function docs

    Add getLogValue function docs

    Name

    Abhirup Raha

    Describe your Issue

    After going through the docs folder, I saw that there are various functions who documentation doesn't exist. Among them I want to make a documentation for getLogValue function.

    This is under hacktoberfest. Kindly assign it to me.

    documentation enhancement hacktoberfest 
    opened by its-abhirup 1
  • Added celsius to fahrenheit functionality

    Added celsius to fahrenheit functionality

    -Added celsius to fahrenheit functionality

    Closes: #41

    Describe the changes you've made

    I have added celsius to fahrenheit functionality

    Type of change

    What sort of change have you made:

    • [ ] Bug fix (non-breaking change which fixes an issue)
    • [x] New feature (non-breaking change which adds functionality)
    • [ ] Code style update (formatting, local variables)
    • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
    • [ ] This change requires a documentation update

    How Has This Been Tested?

    Checklist

    • [x] My code follows the guidelines of this project.
    • [x] I have performed a self-review of my own code.
    • [x] I have commented on my code, particularly wherever it was hard to understand.
    • [ ] I have made corresponding changes to the documentation.
    • [x] My changes generate no new warnings.
    • [ ] I have added tests that prove my fix is effective or that my feature works.
    • [ ] Any dependent changes have been merged and published in downstream modules.

    Screenshots (if applicable)

    enhancement hacktoberfest-accepted 
    opened by roshan-acharya 3
Releases(v1.2.0)
Owner
Susmita Dey
A sophomore college CS student | Programmer | Open Source Enthusiast | Learning Web Dev & DevOps | Founder of @opensourcecommunity-hub | GSSoC'22 participant
Susmita Dey
npm i uuid, npm i nodemon, npm i commander

goit-nodejs-hw-01 Получаем и выводим весь список контактов в виде таблицы (console.table) node index.js --action list Получаем контакт по id node inde

Oksana Banshchykova 3 Jul 5, 2022
Small, typed, dependency free tool to round corners of 2d-polygon provided by an array of { x, y } points.

round-polygon Small, typed, dependency-free tool to round corners of 2d-polygon provided by an array of { x, y } points. The algorithm prevents roundi

Sergey Borovikov 10 Nov 26, 2022
⚡ the first open-source redis client made with care and acessibility-first 🚀

⚡ Redis UI The first open-source project to create an awesome and accessible UI for Redis as a native desktop application. ✨ ?? ?? How to develop loca

Nicolas Lopes Aquino 14 Dec 5, 2022
NPM Package that simplifies Auth with Google OAuth2 🔐

Node Google OAuth2 ?? A simple authentication flow for Google OAuth2 Explore the docs » Report Bug Table of Contents About The Project Getting Started

Adarsh C 8 Jun 17, 2022
portfolio-project is a npm package to automatically update your projects section in your portfolio website. It will fetch the selected repositories directly from your GitHub account.

portfolio-project Those days of manually updating portfolio website after every new project made are gone ⚡ Yesss . . . you read that right. ?? portfo

Gaurav Gulati 15 Aug 3, 2021
A NPM package powered by Yeoman that generates a scaffolding boilerplate for back-end workflow with Node.js.

generator-noderplate Generate Node.js starter files with just one command! We have deployed a npm package that will generate a boilerplate for nodejs

Samarjeet 3 Jan 24, 2022
Detect npm packages by author name in your package-lock.json or yarn.lock.

detect-package-by-author Detect npm packages by author name in your package-lock.json or yarn.lock. Install Install with npm: # Not Yet Publish # npm

azu 2 Jan 11, 2022
A Compiler npm Package.

vcompiler ?? Version 1.x is live ! ?? Introducation It is the npm package for the compilation of the code. Currently it supports the following program

Ankit Choudhary अंकित चौधरी 2 May 30, 2022
Source of the cosmwasm npm package

About Cosmwasm.js was created to help new developers get started with their first dApps. It is just a wrapper package to easily import needed features

CosmWasm 36 Dec 28, 2022
Npm package :p

?? poopoo-api Welcome to an "ok" api ⭐ If you like this package, don't forget to star Github package repo here and the website repo here Example code:

frostzzone 2 Mar 18, 2022
A cool npm package.

aditya.utils Colorful Console const a = require('aditya.utils') a.logblue("TEXT") // Blue Text a.logred("TEXT") // Red Text a.loggreen("TEXT") // Gree

AD!TYA 2 Apr 8, 2022
A cool npm package.

aditya.utils Colorful Console const a = require('aditya.utils') a.logblue("TEXT") // Blue Text a.logred("TEXT") // Red Text a.loggreen("TEXT") // Gree

AD!TYA 2 Apr 8, 2022
🛫 TypeScript Starter template to simplify creating your next npm package.

TypeScript Starter Kit This is an opinionated TypeScript Starter kit to help kick-start development of your next npm package. ?? Get Started Luckily,

Open Web 7 Sep 27, 2022
A CLI tool to make Taobao's npm mirror sync your package immediately.

npm-mirror-sync A CLI tool to make Taobao's npm mirror sync your package immediately. 让淘宝的 NPM 镜像立即收录你的包的新版本。 背景 相信国内小伙伴都在用淘宝的 NPM 镜像(npmmirror.com)作为

CSS魔法 10 Jun 9, 2022
🛫 TypeScript Starter template to simplify creating your next npm package.

TypeScript Starter Kit This is an opinionated TypeScript Starter kit to help kick-start development of your next npm package. ?? Get Started Luckily,

Open Web Foundation 5 May 19, 2022
NPM Package to integrate ONDC into Node.js backend

ondc-node This library can be used to integrate ONDC in JavaScript based applications. Package is developed in TypeScript and will work with Node.Js &

Utkarsh Mehta 12 Dec 11, 2022
Repo for tricking NPM into not hoisting your package. No dependencies and a warning if imported.

noist (Short for No Hoist) Repo for tricking NPM into not hoisting your package. No dependencies and a warning if imported. Why? As of npm@7 NPM suppo

Zackery Griesinger 20 Oct 27, 2022
Get exports of an local npm package.

pkg-exports Get exports of an local npm package. Install npm i pkg-exports Usage getExportsRuntime Get the exports by evaluate the module in worker th

Anthony Fu 103 Nov 12, 2022
An npm package with Tailwind CSS utility classes for creating responsive grid columns without media queries using auto fit.

Grid Auto Fit for Tailwind CSS A plugin that helps you create a responsive grid layout in Tailwind CSS without using media queries. It uses the auto-f

Thirus 80 Dec 28, 2022