{"id":21516175,"url":"https://github.com/zakarialaoui10/mapfun","last_synced_at":"2026-03-17T21:30:18.767Z","repository":{"id":167161561,"uuid":"617128851","full_name":"zakarialaoui10/mapfun","owner":"zakarialaoui10","description":"mapfun is a function that applies a mapping function to an infinite number of input elements, with options to skip certain elements and selectively apply the mapping to keys and/or values of objects. The origin of this function traces back to zikojs","archived":false,"fork":false,"pushed_at":"2026-03-01T12:15:08.000Z","size":548,"stargazers_count":39,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-01T14:05:58.145Z","etag":null,"topics":["awesome","data","function","javascript","map","php","python"],"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/zakarialaoui10.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"zenodo":null}},"created_at":"2023-03-21T18:55:37.000Z","updated_at":"2026-03-01T12:15:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"4f7d158f-94a3-4ae2-a7e9-efb49a2ddee1","html_url":"https://github.com/zakarialaoui10/mapfun","commit_stats":{"total_commits":407,"total_committers":3,"mean_commits":"135.66666666666666","dds":0.04668304668304668,"last_synced_commit":"4426f737766d407b7e4cd1277a2283b3d64f4b53"},"previous_names":["zakarialaoui10/mapfun","zakarialaoui10/mapfunc"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/zakarialaoui10/mapfun","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zakarialaoui10%2Fmapfun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zakarialaoui10%2Fmapfun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zakarialaoui10%2Fmapfun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zakarialaoui10%2Fmapfun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zakarialaoui10","download_url":"https://codeload.github.com/zakarialaoui10/mapfun/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zakarialaoui10%2Fmapfun/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30631844,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T17:32:55.572Z","status":"ssl_error","status_checked_at":"2026-03-17T17:32:38.732Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["awesome","data","function","javascript","map","php","python"],"created_at":"2024-11-24T00:01:50.205Z","updated_at":"2026-03-17T21:30:18.733Z","avatar_url":"https://github.com/zakarialaoui10.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--\n fix doc \n astro\n ziko\n mdzjs \n--\u003e\n|Langage|Problem|Solution|   \n|-|-|-| \n|Javascript|![Solution](https://github.com/zakarialaoui10/mapfun/blob/cbedc3733eda2d26bf3854bb401aea21afc49ee7/Javascript/assets/problem.png?raw=true)|![Solution](https://github.com/zakarialaoui10/mapfun/blob/main/Javascript/assets/solution.png?raw=true)|\n|Python|![problem](https://github.com/zakarialaoui10/mapfun/blob/cbedc3733eda2d26bf3854bb401aea21afc49ee7/Javascript/assets/problem.png?raw=true)|![problem](https://github.com/zakarialaoui10/mapfun/blob/main/Javascript/assets/solution.png?raw=true)|\n\nThe magic function called `mapfun`\n# mapfun\n- `mapfun` is a function that applies a mapping function to an infinite number of input elements, with options to skip certain elements and selectively apply the mapping to keys and/or values of objects.\n\n- The `mapfun` function has been developed in JavaScript and Python, offering the same functionality in different programming languages.\n  - [Javascript](https://github.com/zakarialaoui10/mapfun/tree/main/Javascript#readme)\n    * [NPM](https://www.npmjs.com/package/mapfun) \n  - [Python](https://github.com/zakarialaoui10/mapfun/tree/main/Python#readme)\n    * [PyPI](https://pypi.org/project/mapfun/) \n# Syntax \n|Javascript|Python|\n|-|-|\n|`mapfun(callback,{},...args)`|`mapfun(callback,{},*args)`|\n# Install \n|Javascript|Python|\n|-|-|\n|`npm i mapfun`|`pip install mapfun`|\n### Arguments\n- `fun` : The mapping function that will be applied to each element in the input elements.\u003c/br\u003e\n- `...X` for javascripters or`*X` for pythonista :The elements to be mapped . \u003c/br\u003e\n- `{ skip , key , value }` : Object with three optional properties :\n    * `skip` : specifies the elements to skip during the mapping process.\n    * `key` : boolean flag indicating whether to apply the mapping function to the keys of objects or not. The default value is `false`\n    * `value` : boolean flag indicating whether to apply the mapping function to the values of objects or not. The default value is `true`\n# Supported Datatypes\n|Javascript|Support|Python|Support|\n|---|-|---|-|\n|`Number`|✅|`int`|✅|\n|`String`|✅|`str`|✅|\n|`Boolean`|✅|`Boolean`|✅|\n|`Null`|✅|`float`|✅|\n|`NaN`|✅|`None`|✅|\n|`Undefined`|✅|`memoryview`|✅|\n|`BigInt`|✅|`complex`|❌|\n|`Array`|✅|`list`|✅|\n|`Object`|✅|`object`|✅|\n|`Map`|✅|`dict`|✅|\n|`Set`|✅|`set`|✅|\n|`WeakMap`|❌|`tuple`|✅|\n|`WeakSet`|❌|`bytes`|✅|\n|`ArrayBuffer`|✅|`bytearray`|✅|\n|`Symbol`|❌|`range`|✅|\n# Stats\n|NPM|PYPI|\n|-|-|\n|![](https://img.shields.io/npm/v/mapfun)|![](https://img.shields.io/pypi/v/mapfun)|\n|![downloads](https://img.shields.io/npm/dt/mapfun?label=downloads)|![downloads](https://img.shields.io/pypi/dm/mapfun?label=downloads)|\n|![sourcerank](https://img.shields.io/librariesio/sourcerank/npm/mapfun)|![sourcerank](https://img.shields.io/librariesio/sourcerank/pypi/mapfun)|\n# License \nThis projet is licensed under the terms of MIT License .\u003cbr\u003e\n\u003cimg src=\"https://img.shields.io/github/license/zakarialaoui10/zikojs?color=rgb%2820%2C21%2C169%29\"\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzakarialaoui10%2Fmapfun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzakarialaoui10%2Fmapfun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzakarialaoui10%2Fmapfun/lists"}