{"id":18620532,"url":"https://github.com/thibmaek/pure-fun","last_synced_at":"2025-04-11T02:31:14.023Z","repository":{"id":55865858,"uuid":"103529094","full_name":"thibmaek/pure-fun","owner":"thibmaek","description":"😊  A collection of Javascript pure functions/helpers with 0 dependencies","archived":false,"fork":false,"pushed_at":"2020-12-10T17:22:10.000Z","size":1278,"stargazers_count":14,"open_issues_count":8,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T15:53:27.638Z","etag":null,"topics":["esm","esnext","functional-programming","helper","immutable","javascript","pure-function","utils"],"latest_commit_sha":null,"homepage":null,"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/thibmaek.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}},"created_at":"2017-09-14T12:25:16.000Z","updated_at":"2022-04-30T23:21:36.000Z","dependencies_parsed_at":"2022-08-15T08:01:15.133Z","dependency_job_id":null,"html_url":"https://github.com/thibmaek/pure-fun","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thibmaek%2Fpure-fun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thibmaek%2Fpure-fun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thibmaek%2Fpure-fun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thibmaek%2Fpure-fun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thibmaek","download_url":"https://codeload.github.com/thibmaek/pure-fun/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248329556,"owners_count":21085559,"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":["esm","esnext","functional-programming","helper","immutable","javascript","pure-function","utils"],"created_at":"2024-11-07T04:06:52.676Z","updated_at":"2025-04-11T02:31:09.047Z","avatar_url":"https://github.com/thibmaek.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ch1 align=\"center\"\u003e😊 pure-fun\u003c/h1\u003e\n  \u003cp\u003eA collection of JavaScript pure functions/helpers with zero dependencies.\u003c/p\u003e\n\n  \u003cp align=\"center\"\u003e\n    \u003ca href=\"https://travis-ci.org/thibmaek/pure-fun.svg?branch=master\"\u003e\n      \u003cimg src=\"https://badgen.net/badge/Build status/travis?icon=travis\" alt=\"Travis CI\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://www.notion.so/thibmaek/89015d654dbf4600acf001dbe229fb38?v=b5d231eef3a84993b16abca0a120b04e\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/check-our%20roadmap-5362F5.svg\" alt=\"Chat\"\u003e\n    \u003c/a\u003e\n    \u003cimg src=\"https://badges.greenkeeper.io/thibmaek/pure-fun.svg\" /\u003e\n  \u003c/p\u003e\n\u003c/p\u003e\n\n# Installing\n\n```console\nnpm install pure-fun\nyarn add pure-fun\n```\n\n## Usage\n\n```js\nimport PureFun from 'pure-fun';\nconst mapArr = PureFun.arrays.getMappedArray({ key: 'value' });\n\nimport { arrays } from 'pure-fun';\nconst rnd = arrays.pickRandom([1, 2, 3])\n\nimport sleep from 'pure-fun/async';\n(async () =\u003e {\n  await sleep(1000);\n  console.log('Slept 1s')\n})();\n```\n\n### Development\n\nThe dev env for this is Node LTS/latest with ESM (import/export) syntax as a standard.\nTypescript is used to ensure type safety + documentation\nLinting is done with eslint and testing with jest.\n\nYou can run tests locally with `npm t`. Every PR also builds on Travis CI under these circumstances.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthibmaek%2Fpure-fun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthibmaek%2Fpure-fun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthibmaek%2Fpure-fun/lists"}