string-calculator

1.0.1 • Public • Published

String Calculator

Install

npm install string-calculator

Usage

import stringCalculator from 'string-calculator'
 
stringCalculator('-3+5*6/2+7*5+9/10') // 47.9
stringCalculator('-3+5') // 2
stringCalculator('3+5') // 8
stringCaculator('3-5') // -2
stringCalculator('3') // 3
stringCalculator('-3') // -3

/string-calculator/

    Package Sidebar

    Install

    npm i string-calculator

    Weekly Downloads

    2

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    23 kB

    Total Files

    26

    Last publish

    Collaborators

    • gigablack