{"id":15578187,"url":"https://github.com/hexojs/hexo-server","last_synced_at":"2025-04-05T03:12:38.714Z","repository":{"id":18915543,"uuid":"22134411","full_name":"hexojs/hexo-server","owner":"hexojs","description":"Server module for Hexo.","archived":false,"fork":false,"pushed_at":"2024-04-23T18:35:14.000Z","size":892,"stargazers_count":78,"open_issues_count":20,"forks_count":53,"subscribers_count":16,"default_branch":"master","last_synced_at":"2024-04-23T20:30:57.085Z","etag":null,"topics":["hexo","hexo-plugin","javascript"],"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/hexojs.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":"2014-07-23T06:29:42.000Z","updated_at":"2024-06-18T12:40:29.507Z","dependencies_parsed_at":"2024-04-22T19:33:03.913Z","dependency_job_id":"5064db8d-f314-4e9e-ad70-cd237c2e504d","html_url":"https://github.com/hexojs/hexo-server","commit_stats":{"total_commits":162,"total_committers":25,"mean_commits":6.48,"dds":0.7222222222222222,"last_synced_commit":"ffc8743ecae5eb21bed60130293177d300113592"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexojs%2Fhexo-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexojs%2Fhexo-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexojs%2Fhexo-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexojs%2Fhexo-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hexojs","download_url":"https://codeload.github.com/hexojs/hexo-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247280272,"owners_count":20912967,"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":["hexo","hexo-plugin","javascript"],"created_at":"2024-10-02T19:07:16.102Z","updated_at":"2025-04-05T03:12:38.684Z","avatar_url":"https://github.com/hexojs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hexo-server\n\n[![Build Status](https://github.com/hexojs/hexo-server/workflows/Tester/badge.svg)](https://github.com/hexojs/hexo-server/actions?query=workflow%3ATester)\n[![NPM version](https://badge.fury.io/js/hexo-server.svg)](https://www.npmjs.com/package/hexo-server)\n[![Coverage Status](https://img.shields.io/coveralls/hexojs/hexo-server.svg)](https://coveralls.io/r/hexojs/hexo-server?branch=master)\n\nServer module for [Hexo].\n\n## Installation\n\n``` bash\n$ npm install hexo-server --save\n```\n\n## Usage\n\n``` bash\n$ hexo server\n```\n\nOption | Description | Default\n--- | --- | ---\n`-i`, `--ip` | Override the default server IP. | `::` when IPv6 is available, else `0.0.0.0` (note: in most systems, `::` also binds to `0.0.0.0`)\n`-p`, `--port` | Override the default port. | 4000\n`-s`, `--static` | Only serve static files. | false\n`-l`, `--log [format]` | Enable logger. Override log format. | false\n`-o`, `--open` | Immediately open the server url in your default web browser. | false\n\n## Options\n\n``` yaml\nserver:\n  port: 4000\n  log: false\n  ip: 0.0.0.0\n  compress: false\n  cache: false\n  header: true\n  serveStatic:\n    extensions:\n    - html\n```\n\n- **port**: Server port\n- **log**: Display request info on the console. Always enabled in debug mode.\n- **ip**: Server IP\n- **compress**: Enable GZIP compression\n- **cache**: Enable cache for rendered content\n  - This can speed up server response. However, any changes will no longer take effect in real time.\n  - Suitable for production environment only.\n- **header**: Add `X-Powered-By: Hexo` header\n- **serveStatic**: Extra options passed to [serve-static](https://github.com/expressjs/serve-static#options)\n\n## License\n\nMIT\n\n[Hexo]: http://hexo.io/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexojs%2Fhexo-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhexojs%2Fhexo-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexojs%2Fhexo-server/lists"}