0.3.13 • Published 15 days ago

@teselagen/range-utils v0.3.13

Weekly downloads
-
License
MIT
Repository
-
Last release
15 days ago

CHANGELOG

Installing

npm install @teselagen/range-utils

Usage

import { getRangeLength } from '@teselagen/range-utils';

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 :)

This library was generated with Nx.

Building

Run nx build range-utils to build the library.

Running unit tests

Run nx test range-utils to execute the unit tests via Jest.

0.3.9

1 month ago

0.3.13

15 days ago

0.3.12

15 days ago

0.3.11

15 days ago

0.3.10

1 month ago

0.1.13

2 years ago

0.1.14

2 years ago

0.1.15

2 years ago

0.1.20

2 years ago

0.1.21

2 years ago

0.1.22

2 years ago

0.1.23

2 years ago

0.2.1

2 years ago

0.3.6

2 years ago

0.1.16

2 years ago

0.3.5

2 years ago

0.1.17

2 years ago

0.3.8

1 year ago

0.1.18

2 years ago

0.3.7

2 years ago

0.1.19

2 years ago

0.3.2

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

0.1.10

2 years ago

0.1.11

2 years ago

0.1.12

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.0.2

2 years ago