{"name":"hexo-server","version":"2.0.0","keywords":["hexo","server","connect"],"author":{"url":"http://zespia.tw","name":"Tommy Chen","email":"tommy351@gmail.com"},"license":"MIT","_id":"hexo-server@2.0.0","maintainers":[{"name":"abnerchou","email":"hi@abnerchou.me"},{"name":"curben","email":"bushedge@protonmail.com"},{"name":"ertrzyiks","email":"mateusz.derks@gmail.com"},{"name":"hexobot","email":"hexojs@gmail.com"},{"name":"jlhwung","email":"i@jhuang.me"},{"name":"tomap","email":"piartt@gmail.com"},{"name":"tommy351","email":"tommy351@gmail.com"},{"name":"yoshinorin","email":"nayo-msoft@outlook.jp"}],"homepage":"http://hexo.io/","bugs":{"url":"https://github.com/hexojs/hexo-server/issues"},"dist":{"shasum":"1ad92cc8a7d3528fec6ffa65ff8453f242f7983f","tarball":"http://registry-npm.ywwl.com/hexo-server/download/hexo-server-2.0.0.tgz","fileCount":11,"integrity":"sha512-GnxCU0hjepjmqMENcKOKxpzOajb9YrjQczWsZPXU25l5Ze+M9KJLSVljIRFR+ikDRIPDtXaUY2WgYrWPbNEGfg==","signatures":[{"sig":"MEUCIA2qdJXobP1Jq6knCbPHPJROn+SOJo8dwB6ZW7670JccAiEA7OcupccmjRSpR7U6L8L/dER6yq4enMjEtwcl0j+GUcQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11653,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfL7WwCRA9TVsSAnZWagAAwbcP/jm1EzdvK2laCLIVANeY\nrytviY81NvLRSMR/bJ3nxZ81qrtKWGFMkigor89neB1rdTpSlSEjIZNzZkqn\n3jkyqEIZdFfCaRhmtlBF72kEbdcXODEY9LumO/yYncnopEGv3wWV2oIKaOWS\np9HVjHmUqtnVQz5uvpSTyIOCv6u1KY3zqkr9AwoI3wf5Jj8OH3eB61kcsCtC\nqqBzJNnqPnDm55WbAE4a/ScIkRZxCeH1Ii5foNx4/6YQ+3qApyiVGO3b2Yfr\nLlsPGPYCIkrZmc4cyXuhxkejPJpiLZz8BpMU9noKYu4DNIRcekJabtG/Gb/V\nsZWkqNaRSY3YV27raF9xiNZXvyzwmiP3wtdCDG7IL3Nt8ZOnIE4Pb8NN8UNg\nf6PT1dSsBIEk9aM+QJCYX5N4d1l10rKH4zZYkkDF2h0uirUD0ms6oRl3sk1J\n2q+F1eCBQHWDDsoyQ1FNIuFZoMVtV04Zoyn703yYgGb5qoPaA/d0i8l7kUL+\njiXwJzgC506dfmZVHLVuJo8CwRfFvdGN9ugm+dKPC3EUdSjrFpcppVlG8ZF9\nq37eHn/nufn2cgQ4m569AZocEebCBPdGZfs/FxvK6yWlNG93Y6Vm2eS49y4C\nFSEkcBoVzeavCTogaQG5/kWxCBgpaJaoQfefwbgbYh/GdTcJAAZs7IteJS0h\naglu\r\n=raz2\r\n-----END PGP SIGNATURE-----\r\n","size":4539,"noattachment":false,"key":"/hexo-server/-/hexo-server-2.0.0.tgz"},"main":"index","engines":{"node":">=10.13.0"},"gitHead":"569346949ca1aced78f9a957921dfa6b2f90cb2e","scripts":{"test":"mocha test/index.js","eslint":"eslint .","test-cov":"nyc --reporter=lcovonly npm run test"},"_npmUser":{"name":"curben","email":"bushedge@protonmail.com"},"repository":{"url":"git+https://github.com/hexojs/hexo-server.git","type":"git"},"_npmVersion":"6.14.6","description":"Server module of Hexo.","directories":{"lib":"./lib"},"_nodeVersion":"12.18.3","dependencies":{"mime":"^2.4.3","open":"^7.0.0","chalk":"^4.0.0","morgan":"^1.9.1","connect":"^3.7.0","bluebird":"^3.5.5","compression":"^1.7.4","serve-static":"^1.14.1"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.0.0","chai":"^4.2.0","hexo":"^5.0.0","uuid":"^8.0.0","mocha":"^8.0.1","sinon":"^9.0.2","eslint":"^7.0.0","hexo-fs":"^3.0.1","hexo-util":"^2.1.0","supertest":"^4.0.2","chai-as-promised":"^7.1.1","eslint-config-hexo":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/hexo-server_2.0.0_1596962224463_0.6644362979121097","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":1596962224558,"_cnpm_publish_time":1596962224558,"dist-tags":{"latest":"3.0.0"}}