{"name":"hexo-server","version":"3.0.0","keywords":["hexo","server","connect"],"author":{"url":"http://zespia.tw","name":"Tommy Chen","email":"tommy351@gmail.com"},"license":"MIT","_id":"hexo-server@3.0.0","maintainers":[{"name":"ertrzyiks","email":"mateusz.derks@gmail.com"},{"name":"abnerchou","email":"hi@abnerchou.me"},{"name":"tommy351","email":"tommy351@gmail.com"},{"name":"hexobot","email":"hexojs@gmail.com"},{"name":"jlhwung","email":"i@jhuang.me"},{"name":"tomap","email":"piartt@gmail.com"},{"name":"curben","email":"bushedge@protonmail.com"},{"name":"yoshinorin","email":"nayo-msoft@outlook.jp"}],"homepage":"http://hexo.io/","bugs":{"url":"https://github.com/hexojs/hexo-server/issues"},"dist":{"shasum":"fcc597b29b72ee1f035824c5ebd3d92f7e1adb1c","tarball":"http://registry-npm.ywwl.com/hexo-server/download/hexo-server-3.0.0.tgz","fileCount":11,"integrity":"sha512-u4s0ty9Aew6jV+a9oMrXBwhrRpUQ0U8PWM/88a5aHgDru58VY81mVrxOFxs788NAsWQ8OvsJtF5m7mnXoRnSIA==","signatures":[{"sig":"MEYCIQC8Pji+qNxqB3G0G0k/CObAAFTE+9FwiJJp7j+wsdjTkQIhAOB/Dvf07mr0CSQHD5ao7mHWGU8VeehutMD0vmHhxRRB","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12063,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh0oSNCRA9TVsSAnZWagAARusP/0oc/jQ71qCaac9Rv3uT\n41mnla9bX+sVxeOsP/CxgMSuybon/wEuTGXn2xcN8Y50BUxUa9eVERGEzue9\npJDpMEAnYF8BOD42uwv5LYxgyboSryyg0dIyW4tXOD39FawYze+F+qvhTdOs\nISUOB02pvZ2g36wNZNcegaBkXvNuo5KFnomqOqoa+LakE6FfO6lTTfK31A8a\npk0ThVKsznzOj8qWcNXxoiREaeqF2A8Yrff1TcRS4HDbmqJToOAut/l0iYOK\nx35F1P48i8NG2QSJ3Z89GnkHs44acXTR+2lknf5rR1qyzkrwprykHOAhmjuA\nSrNf90FncfOxE6616aqR/hVtMkY7tN+prZ8JD8RnxCnfvLvEdjcTvSN5sTBR\njX8oApVp+aTKck3MTXzLYuj/ztHQCLQ+7X2gSzZMpO8VnkrS6sm+11eixeWa\np39T7Z9T7FqRkVI6DXhUxMUt8ZxGbFCc4HGsn6soA82W2AedePNcaFD9VnWx\nfucu6GDgq4OjSKZXrxbWx74XT74X8XFMTNSxCy01gQ760fV5UxHQsdjz1B4a\nq4K+W2xfD3Qfpk02jz3wHwzrV+c2crPQi16bkm6R/31mMjnCxwLtEbflqQKe\nobSb1JJn/Rkbrw4DxqISC6/cbjmBi/tnpDsn/8+jiAsT47XDb9cn/6wFptFX\negIM\r\n=iVOf\r\n-----END PGP SIGNATURE-----\r\n","size":4595,"noattachment":false,"key":"/hexo-server/-/hexo-server-3.0.0.tgz"},"main":"index","engines":{"node":">=12.13.0"},"gitHead":"0ffb748a6e1a3c5e76bef17e4ddb2de18406d760","scripts":{"test":"mocha test/index.js","eslint":"eslint .","test-cov":"nyc --reporter=lcovonly npm run test"},"_npmUser":{"name":"yoshinorin","email":"nayo-msoft@outlook.jp"},"repository":{"url":"git+https://github.com/hexojs/hexo-server.git","type":"git"},"_npmVersion":"8.3.0","description":"Server module of Hexo.","directories":{"lib":"./lib"},"_nodeVersion":"16.1.0","dependencies":{"mime":"^3.0.0","open":"^8.0.9","morgan":"^1.9.1","connect":"^3.7.0","bluebird":"^3.5.5","picocolors":"^1.0.0","compression":"^1.7.4","serve-static":"^1.14.1"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.0.0","chai":"^4.2.0","hexo":"^6.0.0","uuid":"^8.0.0","mocha":"^9.1.3","sinon":"^12.0.1","eslint":"^8.1.0","hexo-fs":"^3.0.1","hexo-util":"^2.1.0","supertest":"^6.1.3","chai-as-promised":"^7.1.1","eslint-config-hexo":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/hexo-server_3.0.0_1641186444879_0.4385050625774871","host":"s3://npm-registry-packages"},"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","publish_time":1641186445018,"_cnpm_publish_time":1641186445018,"dist-tags":{"latest":"3.0.0"}}