New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

hekto

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hekto

Serve static files

latest
Source
npmnpm
Version
0.2.4
Version published
Maintainers
2
Created
Source

HEKTO

Installation

Hekto is written in node.js and must be installed via npm so you must have Node.js installed.

npm install -g hekto

Usage

cd my-project
hekto serve <path>

Options

optiondescription
--version [-v]Show the installed version.
--port <port>The port your static content should be served on.
--maxage <maxage>The maxage for http caching.

Command

commanddescription
serveserve the current directory

404 handling

Add a 404.html file in the top directory.

Single page applications

Hekto supports single page applications like(react, vue and angular). Simply add a 200.html file in your projects directory. Hekto will serve your 200.html on every requests. You can still access all the other files.

Extension less html

Extension less html makes it possible for you to strip .html for html files in urls. Eg. help.html is served at /help.html and at /help.

Contribute

Create a pull request / issue to tell us about your awesome ideas, you want us to add or fork the repo and send us a link to your version.

License

MIT

Keywords

serve

FAQs

Package last updated on 12 Apr 2018

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