{"id":13447071,"url":"https://github.com/kobezzza/Collection","last_synced_at":"2025-03-21T17:30:44.467Z","repository":{"id":398062,"uuid":"62922051","full_name":"kobezzza/Collection","owner":"kobezzza","description":"Minimalistic JavaScript library for working with collections of data.","archived":false,"fork":false,"pushed_at":"2023-03-20T21:19:56.000Z","size":4234,"stargazers_count":9,"open_issues_count":1,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-19T10:18:42.012Z","etag":null,"topics":[],"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/kobezzza.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-07-08T22:59:44.000Z","updated_at":"2023-03-10T19:51:23.000Z","dependencies_parsed_at":"2023-07-05T14:47:09.525Z","dependency_job_id":null,"html_url":"https://github.com/kobezzza/Collection","commit_stats":{"total_commits":662,"total_committers":3,"mean_commits":"220.66666666666666","dds":0.06344410876132933,"last_synced_commit":"c679731b9c228ba23f481836270f2177f07751f9"},"previous_names":[],"tags_count":75,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kobezzza%2FCollection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kobezzza%2FCollection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kobezzza%2FCollection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kobezzza%2FCollection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kobezzza","download_url":"https://codeload.github.com/kobezzza/Collection/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244838027,"owners_count":20518769,"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":[],"created_at":"2024-07-31T05:01:07.404Z","updated_at":"2025-03-21T17:30:44.088Z","avatar_url":"https://github.com/kobezzza.png","language":"JavaScript","readme":"Collection\n==========\n\nCollection — minimalistic JavaScript library for working with collections of data.\n\n[![NPM version](http://img.shields.io/npm/v/collection.js.svg?style=flat)](http://badge.fury.io/js/collection.js)\n[![NPM download](https://img.shields.io/npm/dm/collection.js.svg?style=flat)](http://badge.fury.io/js/collection.js)\n\n[![Build Status](https://github.com/kobezzza/Collection/workflows/build/badge.svg?branch=master)](https://github.com/kobezzza/Collection/actions?query=workflow%3Abuild)\n[![Coverage Status](http://img.shields.io/coveralls/kobezzza/Collection.svg?style=flat)](https://coveralls.io/r/kobezzza/Collection?branch=master)\n\n[Demo (threads)](http://jsfiddle.net/kobezzza/hut2jhL9/)\n\n[Documentation](https://github.com/kobezzza/Collection/wiki)\n\n## Features\n\n* Universal interface for multiple data types: arrays, typed arrays, tables, Map, Set, generators and @@iterator protocol;\n* The rich set of iterators;\n* Built-in self JIT compilation of requests provides a very high speed of execution, which is comparable to the native cycles JavaScript;\n* Support lightweight threads based on generators;\n* Work in browsers, as well as on the server ([node.js](http://nodejs.org));\n* The engine is written in pure JavaScript and does not have any dependencies;\n* The source code is designed to work with Google Closure Compiler in advanced mode;\n* The modular architecture allows to build your library;\n* Good code coverage;\n* Detailed [documentation](https://github.com/kobezzza/Collection/wiki) with examples.\n\n### Usage\n\n```js\n// Iterate over the elements in reverse order starting with the 5th\n$C(document.querySelectorAll('.foo')).forEach((el) =\u003e {\n  ...\n}, {\n  reverse: true,\n  startIndex: 5\n});\n\n// Return an array of all the even elements of the original array\n$C([1, 2, 3, 4]).get((el) =\u003e el % 2 === 0);\n\n// Create a new object based on the source,\n// {a: 2, b: 4}\n$C({a: 4, b: 16}).map(Math.sqrt);\n\n// Iterate very large object in the lightweight thread\nawait $C(new Array(1e8)).thread().forEach(() =\u003e {\n  ...\n});\n```\n\n## [License](https://github.com/kobezzza/Collection/blob/master/LICENSE)\n\nThe MIT License.\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkobezzza%2FCollection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkobezzza%2FCollection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkobezzza%2FCollection/lists"}