Skip to content
📦 Parent to the Web Server Trailpacks (hapi, koa, express4, etc)
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
.editorconfig
.gitignore
.travis.yml
LICENSE
README.md
index.js
package.json

README.md

trailpack-webserver

Note: Deprecated as of v3. See trailsjs/trailpack/server.js.

Gitter NPM version Build status Dependency Status Code Climate Follow @trailsjs on Twitter

Parent to the Web Server Trailpacks (hapi, koa, express4, etc).

Usage

Web Server Trailpacks should extend this Trailpack. For example, trailpack-hapi is implemented thus:

const WebServerTrailpack = require('trailpack-webserver')
class HapiTrailpack extends WebServerTrailpack {
  // ...
}

API

getOptionsFromQuery(query)

Extract non-criteria options from the query object.

getCriteriaFromQuery(query)

Extract only the criteria from the query object.

Contributing

We love contributions! Please check out our Contributor's Guide for more information on how our projects are organized and how to get started.

License

MIT

You can’t perform that action at this time.