ve-range-utils

2.6.6 • Public • Published

CHANGELOG

About this Repo

This is a collection of range utility functions.

A range must be an object with a start and end property. Eg:

const myRange = {
	start: 10,
	end: 40
}

A "circular" range has a start > end. Eg:

const myRange2 = {
	start: 50,
	end: 40
}

All ranges are assumed to have 0-based inclusive indices:

rrrr 0123 start = 0, end = 3

Editing This Repo:

All collaborators:

Edit/create a new file and update/add any relevant tests. You can run npm test to make sure all tests pass. Tests will automatically be run pre-commit.

Updating this repo:

Teselagen collaborators:

Commit and push all changes Sign into npm using the teselagen npm account (npm whoami)

npm version patch|minor|major
npm publish

Outside collaborators:

fork and pull request please :)

Package Sidebar

Install

npm i ve-range-utils

Weekly Downloads

453

Version

2.6.6

License

MIT

Unpacked Size

102 kB

Total Files

108

Last publish

Collaborators

  • teselagen-admin
  • tnrich