{"id":15561872,"url":"https://github.com/doodzik/serve-dir","last_synced_at":"2025-03-29T04:43:10.537Z","repository":{"id":74937119,"uuid":"108914481","full_name":"doodzik/serve-dir","owner":"doodzik","description":"serve a directory","archived":false,"fork":false,"pushed_at":"2017-10-31T07:58:45.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-03T14:31:59.270Z","etag":null,"topics":["static-file-server"],"latest_commit_sha":null,"homepage":"","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/doodzik.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-30T22:16:17.000Z","updated_at":"2017-10-31T07:58:46.000Z","dependencies_parsed_at":"2023-02-24T20:00:36.562Z","dependency_job_id":null,"html_url":"https://github.com/doodzik/serve-dir","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"2d4773b8fe30c9d4aca3b7959d91c8bf8579e260"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doodzik%2Fserve-dir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doodzik%2Fserve-dir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doodzik%2Fserve-dir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doodzik%2Fserve-dir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doodzik","download_url":"https://codeload.github.com/doodzik/serve-dir/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246140540,"owners_count":20729797,"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":["static-file-server"],"created_at":"2024-10-02T16:10:32.966Z","updated_at":"2025-03-29T04:43:10.520Z","avatar_url":"https://github.com/doodzik.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# serve-dir\n\nServe a directory as a website.\n\n# Installation\n\n```\n$ npm install doodzik/serve-dir\n```\n\nIf you want to use the command line command `serve-dir` install this module globally \n```\n$ npm install -g doodzik/serve-dir\n```\n\n# Usage\n\n```\nconst Server = require('serve-dir')\nconst dir    = __dirname\nconst server = new Server({dir})\n\nserver.listen().then(port =\u003e {\n  console.log(`serving dir at: http://${server.host}:${port}/`)\n}).then(() =\u003e server.destroy())\n```\n\n```\n# Or in the CLI\n# serve current dir\n$ serve-dir\n# serve a dir\n$ serve-dir ./path/to/dir\n```\n\n# API\n\n# Author\n\n[Frederik Dudzik](https://dudzik.co)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoodzik%2Fserve-dir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoodzik%2Fserve-dir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoodzik%2Fserve-dir/lists"}