@muyi086/cal
v1.0.8
Published
calculate a string expression
Downloads
3
Maintainers
Readme
cal
Install
npm install @muyi086/cal
# common JS
const { cal } = require('@muyi086/cal')
# es6
import { cal } from '@muyi086/cal'
Use
const str = '-(-5+(-2*33//3****4)-2)+((5*6)/2+2)-23*4/2+43'
const value = cal.dealBracket(str)
Function
function|parameter|default|required|description| --|--|--|--|--| dealBracket|string|string|required|a string include expression|