number-interval
v1.0.0
Published
This is a NPM library that provides a simple numeric interval with arithmetic operations.
Downloads
4
Maintainers
Readme
number-interval
This is a NPM library that provides a simple numeric interval with arithmetic operations.
Less talk, more library
npm install number-interval
Keep track of the versions with the changelog.
Motivation
Initially this code was written in order to compute CIDRs in this project.
As it can be used for other interval computations as well (for example time intervals), I decided to put it into a separate library.
Usage
Check out the unit test in order to see all operations in use with some example values.