{"id":20099207,"url":"https://github.com/ryanfarber/express-utils","last_synced_at":"2026-05-03T11:36:28.522Z","repository":{"id":193994786,"uuid":"689882308","full_name":"ryanfarber/express-utils","owner":"ryanfarber","description":"basic utils for express servers","archived":false,"fork":false,"pushed_at":"2023-11-18T02:36:01.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-30T14:43:07.050Z","etag":null,"topics":["express","logging","nodejs","utils"],"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/ryanfarber.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,"governance":null}},"created_at":"2023-09-11T05:32:24.000Z","updated_at":"2023-11-18T02:35:05.000Z","dependencies_parsed_at":"2023-11-18T03:48:46.606Z","dependency_job_id":"f173d152-3ba0-4c37-983b-0ac21ff21d9a","html_url":"https://github.com/ryanfarber/express-utils","commit_stats":null,"previous_names":["ryanfarber/express-utils"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ryanfarber/express-utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanfarber%2Fexpress-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanfarber%2Fexpress-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanfarber%2Fexpress-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanfarber%2Fexpress-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryanfarber","download_url":"https://codeload.github.com/ryanfarber/express-utils/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanfarber%2Fexpress-utils/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32567655,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"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":["express","logging","nodejs","utils"],"created_at":"2024-11-13T17:09:01.463Z","updated_at":"2026-05-03T11:36:28.506Z","avatar_url":"https://github.com/ryanfarber.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# express-utils\nsimple, basic utilities for express servers\n\n- send\n- sendStatus\n- echoRequest\n- basicAuth\n- whitelist\n- routeLogger\n- forceHttps\n\n\n## send\n```javascript\nconst {send} = require(\"@ryanforever/express-utils\")\n\napp.get(\"/hello\", send(\"world\", 200))\n````\n\n## sendStatus\n```javascript\nconst {sendStatus} = require(\"@ryanforever/express-utils\")\n\napp.get(\"/ping\", sendStatus(200))\n````\n\n## routeLogger\n```javascript\nconst {routeLogger} = require(\"@ryanforever/express-utils\")\nconst express = require(\"express\")()\n\napp.use(routeLogger({\n\tignore: [\"/health\"] // choose paths to ignore\n}))\n````\n\n## echoRequest\n```javascript\nconst {echoRequest} = require(\"@ryanforever/express-utils\")\n\napp.get(\"/users\", echoRequest)\n// will send back {baseUrl, url, path, method, body, parms, query, headers}\n/*\n{\n\t\"baseUrl\": \"\",\n\t\"url\": \"/echo?hello=world\",\n\t\"path\": \"/echo\",\n\t\"method\": \"GET\",\n\t\"body\": {\n\t\t\"name\": \"ryan forever\"\n\t},\n\t\"query\": {\n\t\t\"hello\": \"world\"\n\t},\n\t\"params\": {},\n\t\"headers\": {\n\t\t\"host\": \"localhost\",\n\t\t\"content-type\": \"application/json\",\n\t\t\"user-agent\": \"insomnia/8.4.1\",\n\t\t\"x-test-header\": \"abcd1234\",\n\t\t\"content-length\": \"27\"\n\t}\n}\n*/\n````\n\n## basicAuth\nforked from [express-basic-auth](https://www.npmjs.com/package/express-basic-auth)\n```javascript\nconst {basicAuth} = require(\"@ryanforever/express-utils\")\nconst app = require(\"express\")()\n\napp.use(basicAuth({\n\tusers: {\"ryanforever\": \"abcd1234\"},\n\tchallenge: true // use for popup password input\n}))\n````","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanfarber%2Fexpress-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryanfarber%2Fexpress-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanfarber%2Fexpress-utils/lists"}