0.1.0 • Published 7 years ago

darren-super-calculator v0.1.0

Weekly downloads
6
License
ISC
Repository
github
Last release
7 years ago

darren-super-calculator

Description darren-super-calculator is a library to use to make calculation easier.

Installation

npm install darren-super-calculator --save

Usage calculator(whatTodo) The parameter whatTodo is a string, you can enter one or more function from above, and if you use more than one function, you have to use 'zidane:' as separation :

  • p(stringNumberCommaSeparated) This is to sum calculation
  • m(stringNumberCommaSeparated) This is to substract calculation
  • x(stringNumberCommaSeparated) This is to multiply calculation
  • d(stringNumberCommaSeparated) This is to divide calculation

Example of usage

let result = calculator('x(10,3)zidane:m(2,8)zidane:d(2,3)');