keriwarr / splitwise

A JavaScript SDK for the Splitwise API.
MIT License
70 stars 18 forks source link

Add option to split expense equally #28

Closed jlave-dev closed 2 years ago

jlave-dev commented 2 years ago

The Splitwise API create_expense endpoint supports a split_equally property which, when true, obviates the need for manually specifying users and amounts. (Manually specifying amounts is error-prone due to rounding.) This is perhaps the most common use case so it makes sense for this library to support it.