{"id":26904248,"url":"https://github.com/sluukkonen/iiris","last_synced_at":"2025-04-01T10:52:57.198Z","repository":{"id":37049501,"uuid":"287549472","full_name":"sluukkonen/iiris","owner":"sluukkonen","description":"👁️ A functional JavaScript \u0026 TypeScript utility library ","archived":false,"fork":false,"pushed_at":"2024-04-25T07:37:11.000Z","size":2764,"stargazers_count":31,"open_issues_count":17,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-25T08:38:43.796Z","etag":null,"topics":["functional-programming","javascript","typescript","utility-library"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sluukkonen.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-14T14:17:07.000Z","updated_at":"2024-06-05T04:30:45.326Z","dependencies_parsed_at":"2023-10-16T11:52:45.372Z","dependency_job_id":"d0d9a9b4-31f7-47ff-87c8-76f4c1cd688e","html_url":"https://github.com/sluukkonen/iiris","commit_stats":{"total_commits":1099,"total_committers":5,"mean_commits":219.8,"dds":0.5796178343949044,"last_synced_commit":"f9c1d502455d772709643b75a56e8b55f8f9852f"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sluukkonen%2Fiiris","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sluukkonen%2Fiiris/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sluukkonen%2Fiiris/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sluukkonen%2Fiiris/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sluukkonen","download_url":"https://codeload.github.com/sluukkonen/iiris/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246628338,"owners_count":20808106,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["functional-programming","javascript","typescript","utility-library"],"created_at":"2025-04-01T10:52:56.582Z","updated_at":"2025-04-01T10:52:57.189Z","avatar_url":"https://github.com/sluukkonen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Iiris 👁️\n\n[![CI](https://github.com/sluukkonen/iiris/actions/workflows/ci.yml/badge.svg)](https://github.com/sluukkonen/iiris/actions/workflows/ci.yml)\n![MIT License](https://img.shields.io/github/license/sluukkonen/iiris)\n[![NPM](https://img.shields.io/npm/v/iiris)](https://www.npmjs.com/package/iiris)\n\nIiris is an experimental utility library, designed to make it easier to manipulate built-in JavaScript data types like\narrays, objects and strings in a functional manner. It is heavily inspired by projects like\n[Ramda](https://github.com/ramda/ramda) and [Lodash](https://github.com/lodash/lodash).\n\n## Features \u0026 Goals\n\n- No mutation of input data.\n- Automatically curried, data-last API.\n- Performance on par with native JavaScript methods.\n- Good out-of-the-box TypeScript typings.\n- Small footprint (4 kB gzipped) and excellent tree-shaking support.\n- Support only native JavaScript data types.\n- Target reasonably current JavaScript environments (Node 10+)\n\nIiris is still alpha-quality software, so bugs and changes to the API should be expected.\n\nIf you've tried Iiris and something doesn't seem to be working as expected, [let me know](https://github.com/sluukkonen/iiris/issues/new/choose)!\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Why Iiris?](#why-iiris)\n- [API Reference](#documentation)\n  - [Module `iiris`](docs/index.md)\n  - [Module `iiris/array`](docs/array.md)\n  - [Module `iiris/object`](docs/object.md)\n  - [Module `iiris/set`](docs/set.md)\n  - [Module `iiris/map`](docs/map.md)\n  - [Module `iiris/text`](docs/text.md)\n\n## Installation\n\nRun either\n\n```shell\n$ npm install iiris\n```\n\nor\n\n```shell\n$ yarn add iiris\n```\n\ndepending on your favourite package manager.\n\n## Why Iiris?\n\nIiris is heavily inspired by libraries like Ramda and Lodash. However, there are a few things that make it different:\n\nCompared to [lodash](https://github.com/lodash/lodash):\n\n- Each function is automatically curried and input data is always the last argument.\n- Input data is never mutated.\n- Chaining is achieved with function composition instead of special constructs like `_.chain`.\n- Iiris doesn't support any kind of iteratee shorthands.\n\nCompared to [Ramda](https://github.com/ramda/ramda):\n\n- Much better TypeScript support. Typically, you don't have to add any extra type annotations when using Iiris, even\n  when writing code in point-free style.\n- Iiris functions are less polymorphic. For example, `I.map` operates only on arrays, while `R.map` supports arrays,\n  objects and arbitrary fantasy-land functors. TypeScript doesn't have native support for higher-kinded types\n  ([although some people have tried to work around that](https://github.com/gcanti/fp-ts)), so I made an intentional\n  decision to limit the polymorphism of Iiris functions. This makes code less general but dramatically improves the\n  TypeScript experience and makes tree-shaking more effective.\n- No support for placeholders. Placeholders add some overhead to each curried function call and make writing TypeScript\n  typings much harder.\n- A bigger focus on performance.\n\nCompared to both:\n\n- Iiris requires a fairly modern JavaScript engine (Node 10+) to run.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsluukkonen%2Fiiris","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsluukkonen%2Fiiris","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsluukkonen%2Fiiris/lists"}