Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

trailpack-webserver

2.0.0 • Public • Published

trailpack-webserver

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

Install

npm i trailpack-webserver

DownloadsWeekly Downloads

0

Version

2.0.0

License

MIT

Last publish

Collaborators

  • avatar