{"id":13716584,"url":"https://github.com/KaleoSoftware/micro-hoofs","last_synced_at":"2025-05-07T06:30:37.113Z","repository":{"id":57162634,"uuid":"86925124","full_name":"KaleoSoftware/micro-hoofs","owner":"KaleoSoftware","description":"🐎 for your 🔬 😝","archived":false,"fork":false,"pushed_at":"2017-04-12T09:24:03.000Z","size":4,"stargazers_count":24,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-07-09T22:49:41.704Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KaleoSoftware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-01T16:03:59.000Z","updated_at":"2022-04-10T20:46:11.000Z","dependencies_parsed_at":"2022-09-04T09:21:46.065Z","dependency_job_id":null,"html_url":"https://github.com/KaleoSoftware/micro-hoofs","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/KaleoSoftware%2Fmicro-hoofs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KaleoSoftware%2Fmicro-hoofs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KaleoSoftware%2Fmicro-hoofs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KaleoSoftware%2Fmicro-hoofs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KaleoSoftware","download_url":"https://codeload.github.com/KaleoSoftware/micro-hoofs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":213748502,"owners_count":15632801,"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-08-03T00:01:12.089Z","updated_at":"2024-08-03T00:05:03.687Z","avatar_url":"https://github.com/KaleoSoftware.png","language":"JavaScript","funding_links":[],"categories":["Modules"],"sub_categories":["Higher Order"],"readme":"Higher-order functions for zeit/micro\n=====================================\n\n - `compose()` - because it should be a part of es6 right\n - `respondToLivenessProbe` - to respond to k8s liveness probe with `{\"healthy\": true}`\n - `parseJSONInput` - puts input json on `req.json`\n\nExample:\n\n```js\nconst cmd = input =\u003e ({\n  hello: input.world\n})\n\nmodule.exports = compose(\n  respondToLivenessProbe,\n  parseJSONInput,\n  process.env.NODE_ENV !== 'production' \u0026\u0026 visualize\n)(async req =\u003e cmd(req.json))\n```\n\n - `curl localhost:3000` -\u003e returns `{\"healthy\": true}`\n - `curl -XPOST -d'{\"world\": \"world!\"}' http://localhost:3000` -\u003e returns `{\"hello\": \"world!\"}`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKaleoSoftware%2Fmicro-hoofs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FKaleoSoftware%2Fmicro-hoofs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKaleoSoftware%2Fmicro-hoofs/lists"}