{"id":25138421,"url":"https://github.com/xaqron/politify","last_synced_at":"2026-04-24T16:35:05.720Z","repository":{"id":57326919,"uuid":"156834475","full_name":"Xaqron/politify","owner":"Xaqron","description":"A Javascript library that promises to run any function as you wish","archived":false,"fork":false,"pushed_at":"2018-11-09T09:12:45.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-11T07:07:04.875Z","etag":null,"topics":["function","nodejs","promise","wish"],"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/Xaqron.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":"2018-11-09T08:44:22.000Z","updated_at":"2018-11-09T09:17:16.000Z","dependencies_parsed_at":"2022-09-13T18:53:48.577Z","dependency_job_id":null,"html_url":"https://github.com/Xaqron/politify","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xaqron%2Fpolitify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xaqron%2Fpolitify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xaqron%2Fpolitify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xaqron%2Fpolitify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Xaqron","download_url":"https://codeload.github.com/Xaqron/politify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246927844,"owners_count":20856198,"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":["function","nodejs","promise","wish"],"created_at":"2025-02-08T17:16:23.404Z","updated_at":"2026-04-24T16:35:05.685Z","avatar_url":"https://github.com/Xaqron.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Politify\n\nHave you ever struggled how to implement a function to accomplish the desired task?\n\nNo hassle anymore. Pass your function to **politify** and make a wish about how you want the function works and... Viola!\n\n**Eventually** you will get a function back that works as you expect.\n\n## Install\n\n```bash\nnpm i politify\n```\n\n## Usage\n\n```js\nconst politify = require('politify')\n\nconst inc = a =\u003e a + 1\n\npolitify(inc)\n  .then((wishInc) =\u003e console.log(wishInc(1) === Infinity ? 'success' : 'failure'))\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxaqron%2Fpolitify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxaqron%2Fpolitify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxaqron%2Fpolitify/lists"}