Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hexo-server

Package Overview
Dependencies
Maintainers
8
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexo-server

Server module of Hexo.

  • 3.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
20K
decreased by-1.44%
Maintainers
8
Weekly downloads
 
Created
Source

hexo-server

Build Status NPM version Coverage Status

Server module for Hexo.

Installation

$ npm install hexo-server --save

Usage

$ hexo server
OptionDescriptionDefault
-i, --ipOverride the default server IP.:: when IPv6 is available, else 0.0.0.0 (note: in most systems, :: also binds to 0.0.0.0)
-p, --portOverride the default port.4000
-s, --staticOnly serve static files.false
-l, --log [format]Enable logger. Override log format.false
-o, --openImmediately open the server url in your default web browser.false

Options

server:
  port: 4000
  log: false
  ip: 0.0.0.0
  compress: false
  cache: false
  header: true
  serveStatic:
    extensions:
    - html
  • port: Server port
  • log: Display request info on the console. Always enabled in debug mode.
  • ip: Server IP
  • compress: Enable GZIP compression
  • cache: Enable cache for rendered content
    • This can speed up server response. However, any changes will no longer take effect in real time.
    • Suitable for production environment only.
  • header: Add X-Powered-By: Hexo header
  • serveStatic: Extra options passed to serve-static

License

MIT

Keywords

FAQs

Package last updated on 03 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc