number-interval
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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.

Dependents (1)

Package Sidebar

Install

npm i number-interval

Weekly Downloads

4

Version

1.0.0

License

Apache-2.0

Unpacked Size

34.8 kB

Total Files

11

Last publish

Collaborators

  • obirah