{"id":17706188,"url":"https://github.com/fernandomoraes/lean-server","last_synced_at":"2025-03-31T05:26:16.168Z","repository":{"id":70911151,"uuid":"74082393","full_name":"fernandomoraes/lean-server","owner":"fernandomoraes","description":"lean http server","archived":false,"fork":false,"pushed_at":"2016-12-03T19:35:20.000Z","size":452,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-06T18:50:35.587Z","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/fernandomoraes.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-18T01:17:02.000Z","updated_at":"2023-03-10T10:42:43.000Z","dependencies_parsed_at":"2023-02-21T23:00:58.864Z","dependency_job_id":null,"html_url":"https://github.com/fernandomoraes/lean-server","commit_stats":{"total_commits":12,"total_committers":1,"mean_commits":12.0,"dds":0.0,"last_synced_commit":"e76b138039c64608138d900ad687827d3cba241c"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fernandomoraes%2Flean-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fernandomoraes%2Flean-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fernandomoraes%2Flean-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fernandomoraes%2Flean-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fernandomoraes","download_url":"https://codeload.github.com/fernandomoraes/lean-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246420640,"owners_count":20774353,"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-10-24T23:07:13.576Z","updated_at":"2025-03-31T05:26:16.149Z","avatar_url":"https://github.com/fernandomoraes.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/fernandomoraes/lean-server.svg?branch=master)](https://travis-ci.org/fernandomoraes/lean-server) [![Coverage Status](https://coveralls.io/repos/github/fernandomoraes/lean-server/badge.svg?branch=master)](https://coveralls.io/github/fernandomoraes/lean-server?branch=master)\n\nlean-server\n=========\n\nA small library to handle http requests.\n\n## Installation\n\n`npm install lean-server`\n\n## Usage\n\n```javascript\nvar lean = require('lean-server');\n\nfunction sendResponse(res, text) { \n\tres.writeHead(200, {'Content-type': 'text/plain'});\n\tres.write(text);\n\tres.end();\n}\n \n lean.instance()\n      .register('/hello', (req, res) =\u003e sendResponse(res, 'Hello world'))\n      .register('/bye', (req, res) =\u003e sendResponse(res, 'Byeee'))\n      .on(8081).start();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffernandomoraes%2Flean-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffernandomoraes%2Flean-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffernandomoraes%2Flean-server/lists"}