Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/konstantinzolotarev/hapi-repl
https://github.com/konstantinzolotarev/hapi-repl
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/konstantinzolotarev/hapi-repl
- Owner: konstantinzolotarev
- License: mit
- Created: 2017-04-03T18:58:59.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-04-04T09:37:26.000Z (over 7 years ago)
- Last Synced: 2024-10-06T01:04:43.108Z (3 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hapi.js REPL plugin
## Installation
```bash
$ npm install --save-dev hapi-repl
```Note that you should not use this plugin in `production` !
After installing just add it into your Hapi.js
```javascript
'use strict'const replPlugin = require('./index')
const Hapi = require('hapi')// Create a server with a host and port
const server = new Hapi.Server()
server.connection({host: 'localhost', port: 8000})server.register([replPlugin], (err) => {
if (err)
throw err// Start the server
server.start((err) => {
if (err)
throw err
})
})```
After starting app it will start your repl automatically