This package has been deprecated

Author message:

removed

yel

0.4.2 • Public • Published

yel

Quick start a server form current directory.

Install

$ npm install yel -g

Usage

$ yel start

Commands

start [port]

Start a server with port from current directory. The dafult port is 80.

Example, start a server at 8080 port:

$ yel start 8080

restart

Restart the server from current directory.

stop

Stop the server from current directory.

File: config.json

Use a config.json file to start server.

  • workers server workers, default 2

  • log log file path, default '#<date>.log'

  • host the server host, default '0.0.0.0'

  • port the server port, default 80

  • cache file cache options:

    • maxAge max life age, default 0

    • cacheControl cache control string, default 'public,max-age=#<maxAge>'

    • md5Encoding file md5 encoding, 'hex' or 'base64', default 'hex'

    • ignores ignore files, default ['node_modules', 'plugins', 'tmp', '*.log', 'config.json']

  • alias

Plugin

See "About yel plugin".

License

(The MIT License)

Copyright (c) 2015-2015 Kan Kung-Yip <gon@gyeq.in>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Readme

Keywords

Package Sidebar

Install

npm i yel

Weekly Downloads

2

Version

0.4.2

License

MIT

Last publish

Collaborators

  • kankungyip