
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
@teselagen/range-utils
Advanced tools
npm install @teselagen/range-utils
import { getRangeLength } from '@teselagen/range-utils';
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
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.
Commit and push all changes Sign into npm using the teselagen npm account (npm whoami)
npm version patch|minor|major
npm publish
fork and pull request please :)
This library was generated with Nx.
Run nx build range-utils
to build the library.
Run nx test range-utils
to execute the unit tests via Jest.
FAQs
<!-- TOC -->
The npm package @teselagen/range-utils receives a total of 7,405 weekly downloads. As such, @teselagen/range-utils popularity was classified as popular.
We found that @teselagen/range-utils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.