number-theoretic/integers

View on GitHub
README.md

Summary

Maintainability
Test Coverage
:zzz: [@number-theoretic/integers](https://number-theoretic.github.io/integers)
==

Number theory for integers for JavaScript.
See [docs](https://number-theoretic.github.io/integers/index.html).

> :warning: Depending on your environment, the code may require
> `regeneratorRuntime` to be defined, for instance by importing
> [regenerator-runtime/runtime](https://www.npmjs.com/package/regenerator-runtime).

```js
import * as double from '@arithmetic-type/double';
import {factorizer} from '@number-theoretic/integers';

const factorize = factorizer(double);

[...factorize(999)]; // 3 3 3 37
```

[![License](https://img.shields.io/github/license/number-theoretic/integers.svg)](https://raw.githubusercontent.com/number-theoretic/integers/main/LICENSE)
[![Version](https://img.shields.io/npm/v/@number-theoretic/integers.svg)](https://www.npmjs.org/package/@number-theoretic/integers)
[![Tests](https://img.shields.io/github/actions/workflow/status/number-theoretic/integers/ci.yml?branch=main&event=push&label=tests)](https://github.com/number-theoretic/integers/actions/workflows/ci.yml?query=branch:main)
[![Dependencies](https://img.shields.io/librariesio/github/number-theoretic/integers.svg)](https://github.com/number-theoretic/integers/network/dependencies)
[![GitHub issues](https://img.shields.io/github/issues/number-theoretic/integers.svg)](https://github.com/number-theoretic/integers/issues)
[![Downloads](https://img.shields.io/npm/dm/@number-theoretic/integers.svg)](https://www.npmjs.org/package/@number-theoretic/integers)

[![Code issues](https://img.shields.io/codeclimate/issues/number-theoretic/integers.svg)](https://codeclimate.com/github/number-theoretic/integers/issues)
[![Code maintainability](https://img.shields.io/codeclimate/maintainability/number-theoretic/integers.svg)](https://codeclimate.com/github/number-theoretic/integers/trends/churn)
[![Code coverage (cov)](https://img.shields.io/codecov/c/gh/number-theoretic/integers/main.svg)](https://codecov.io/gh/number-theoretic/integers)
[![Code technical debt](https://img.shields.io/codeclimate/tech-debt/number-theoretic/integers.svg)](https://codeclimate.com/github/number-theoretic/integers/trends/technical_debt)
[![Documentation](https://number-theoretic.github.io/integers/badge.svg)](https://number-theoretic.github.io/integers/source.html)
[![Package size](https://img.shields.io/bundlephobia/minzip/@number-theoretic/integers)](https://bundlephobia.com/result?p=@number-theoretic/integers)