This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
seve with all
npm packages installed. Try it out:
seve lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
Run a tiny & simple server (like, for tests & stuffs) from a given folder (or the current).
To use sèvè, you must at first install it globally.
(sudo) npm install -g seve
Using sèvè is simple:
seve [options] [folder] Arguments: [folder] folder to serve Options: -h, --help output usage information -V, --version output the version number -p, --port <port> port used by the server (default to 12345) -q, --quiet don't show the logs -i, --index enable autoindex -e, --exclude <glob> don't show matching files (only with autoindex) -N, --no-open don't browse to the URL at startup
The folder to serve. If no folder is given (or if the given path isn't a folder), the current folder will be used.
Manually setup the port for the server. Defaults to
When no index file (
index.html) are found inside a folder, sèvè returns an
HTTP 404 Error. Since version
0.6.0, by activating this option, you can show an autoindex: a list of files & folders in the current path.
Within autoindexes, don't show the files matching the given glob string.
By default, sèvè output all the logs. You can tell him to shut the hell up with this option.
By default (since version
0.5.0), sèvè will browse to the URL of the server at startup. You can disable this behavior with this option.
Output usage information.
Output sèvè' version number.
If you want to use a port number between 1 and 1024, seve must be run with sudo rights.
There's many great grunt plugins to do what seve does, like grunt-contrib-connect.
In lieu of a formal styleguide, take care to maintain the existing coding style. Lint your code using Grunt.
Copyright (c) 2014 Leny Licensed under the MIT license.