$ npm install -g meido
# serve current working directory
$ meido
# serve elsewhere
$ meido ./public
# serve and open the webpage
$ meido --open
# serve in different port
$ meido --port 4000
# help
$ meido --help
Obviously, meido
is the prononciation of メイド
in Japanese, which means maid
in English.
As how meido
describes herself, more straight-forward and friendly.
import meido from 'meido'
meido(options, callback)
Type: number
Default: 3000
Type: string
Default: ./
The directory to serve.
CLI only
Type: boolean
Default: false
Open the webpage in browser after the server is established.
Type: function
Args: app
- Express server instance
Run the callback function after the server is established. You can get the server port by app.get('port')
MIT © EGOIST