{"id":28225679,"url":"https://github.com/anmiles/express-tools","last_synced_at":"2026-02-25T16:03:29.258Z","repository":{"id":290244561,"uuid":"941130183","full_name":"anmiles/express-tools","owner":"anmiles","description":"Collection of utility functions for Express server","archived":false,"fork":false,"pushed_at":"2026-02-01T11:21:21.000Z","size":1204,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-01T21:01:28.531Z","etag":null,"topics":["backend","express","javascript","jest","nodejs","request","server","typescript","zod"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/anmiles.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-03-01T15:05:53.000Z","updated_at":"2026-02-01T11:21:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"1456b4f7-4257-4352-8bfe-dd85c1da4e16","html_url":"https://github.com/anmiles/express-tools","commit_stats":null,"previous_names":["anmiles/express-tools"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/anmiles/express-tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anmiles%2Fexpress-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anmiles%2Fexpress-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anmiles%2Fexpress-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anmiles%2Fexpress-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anmiles","download_url":"https://codeload.github.com/anmiles/express-tools/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anmiles%2Fexpress-tools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29829409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T15:41:19.027Z","status":"ssl_error","status_checked_at":"2026-02-25T15:40:47.150Z","response_time":61,"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":["backend","express","javascript","jest","nodejs","request","server","typescript","zod"],"created_at":"2025-05-18T11:09:23.389Z","updated_at":"2026-02-25T16:03:29.253Z","avatar_url":"https://github.com/anmiles.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @anmiles/express-tools\n\nCollection of utility functions for Express server\n\n----\n\n## Installation\n\n`npm install @anmiles/express-tools`\n\n## Usage example\n\n```ts\nimport { startServer, stopServer, createRequestHandler, createAsyncRequestHandler } from '@anmiles/express-tools';\nimport express from 'express';\n\nasync function main() {\n\ttry {\n\t\tconst app = express();\n\n\t\tconst readHandler = createAsyncRequestHandler(async () =\u003e ({ result: await getData() }));\n\n\t\tconst writeHandler = createRequestHandler((request) =\u003e {\n\t\t\twriteData(request.body);\n\t\t\treturn { result: 'OK' };\n\t\t})\n\n\t\tapp.get('/read', readHandler);\n\t\tapp.get('/write', writeHandler);\n\n\t\tawait startServer(app, { port: Number(process.env['PORT']) || 0, open: true });\n\t\t// or await startServer(app) to use any free port and do not open the page in the browser automatically\n\t} catch (ex) {\n\t\tlogger.error(ex);\n\t\tawait stopServer();\n\t}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanmiles%2Fexpress-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanmiles%2Fexpress-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanmiles%2Fexpress-tools/lists"}