Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/iterable-iterator/cardinality

:v: Iterable cardinality library for JavaScript
https://github.com/iterable-iterator/cardinality

agpl arrays counting iterables iterators javascript

Last synced: about 1 month ago
JSON representation

:v: Iterable cardinality library for JavaScript

Awesome Lists containing this project

README

        

:v: [@iterable-iterator/cardinality](https://iterable-iterator.github.io/cardinality)
==

Iterable cardinality library for JavaScript.
Inspired by [this Python library](https://github.com/wbolster/cardinality).
Parent is [js-library](https://github.com/make-github-pseudonymous-again/js-library).

```js
cardinality.count( "abc"[Symbol.iterator]( ) ) ; // 3
```

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

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