{"id":19020248,"url":"https://github.com/trailsjs/trailpack-webserver","last_synced_at":"2025-04-23T05:27:12.932Z","repository":{"id":57378869,"uuid":"49342194","full_name":"trailsjs/trailpack-webserver","owner":"trailsjs","description":":package: Parent to the Web Server Trailpacks (hapi, koa, express4, etc)","archived":false,"fork":false,"pushed_at":"2017-03-06T02:06:00.000Z","size":22,"stargazers_count":3,"open_issues_count":3,"forks_count":4,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-04-25T01:08:07.533Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trailsjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-09T21:31:49.000Z","updated_at":"2024-03-07T07:33:54.000Z","dependencies_parsed_at":"2022-09-02T21:20:46.603Z","dependency_job_id":null,"html_url":"https://github.com/trailsjs/trailpack-webserver","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trailsjs%2Ftrailpack-webserver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trailsjs%2Ftrailpack-webserver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trailsjs%2Ftrailpack-webserver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trailsjs%2Ftrailpack-webserver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trailsjs","download_url":"https://codeload.github.com/trailsjs/trailpack-webserver/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223746909,"owners_count":17195810,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T20:16:17.027Z","updated_at":"2024-11-08T20:16:17.656Z","avatar_url":"https://github.com/trailsjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# trailpack-webserver\n\n\n## Note: Deprecated as of v3. See [trailsjs/trailpack/server.js](https://github.com/trailsjs/trailpack/blob/master/server.js).\n\n[![Gitter][gitter-image]][gitter-url]\n[![NPM version][npm-image]][npm-url]\n[![Build status][ci-image]][ci-url]\n[![Dependency Status][daviddm-image]][daviddm-url]\n[![Code Climate][codeclimate-image]][codeclimate-url]\n[![Follow @trailsjs on Twitter][twitter-image]][twitter-url]\n\nParent to the Web Server Trailpacks (hapi, koa, express4, etc).\n\n## Usage\nWeb Server Trailpacks should extend this Trailpack. For example, [trailpack-hapi](https://github.com/trailsjs/trailpack-hapi)\nis implemented thus:\n\n```js\nconst WebServerTrailpack = require('trailpack-webserver')\nclass HapiTrailpack extends WebServerTrailpack {\n  // ...\n}\n```\n\n## API\n\n#### `getOptionsFromQuery(query)`\n\nExtract non-criteria options from the query object.\n\n#### `getCriteriaFromQuery(query)`\n\nExtract only the criteria from the query object.\n\n## Contributing\nWe love contributions! Please check out our [Contributor's Guide](https://github.com/trailsjs/trails/blob/master/CONTRIBUTING.md) for more\ninformation on how our projects are organized and how to get started.\n\n## License\n[MIT](https://github.com/trailsjs/trailpack-webserver/blob/master/LICENSE)\n\n[npm-image]: https://img.shields.io/npm/v/trailpack-webserver.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/trailpack-webserver\n[ci-image]: https://img.shields.io/travis/trailsjs/trailpack-webserver/master.svg?style=flat-square\n[ci-url]: https://travis-ci.org/trailsjs/trailpack-webserver\n[daviddm-image]: http://img.shields.io/david/trailsjs/trailpack-webserver.svg?style=flat-square\n[daviddm-url]: https://david-dm.org/trailsjs/trailpack-webserver\n[codeclimate-image]: https://img.shields.io/codeclimate/github/trailsjs/trailpack-webserver.svg?style=flat-square\n[codeclimate-url]: https://codeclimate.com/github/trailsjs/trailpack-webserver\n[gitter-image]: http://img.shields.io/badge/+%20GITTER-JOIN%20CHAT%20%E2%86%92-1DCE73.svg?style=flat-square\n[gitter-url]: https://gitter.im/trailsjs/trails\n[twitter-image]: https://img.shields.io/twitter/follow/trailsjs.svg?style=social\n[twitter-url]: https://twitter.com/trailsjs\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrailsjs%2Ftrailpack-webserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrailsjs%2Ftrailpack-webserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrailsjs%2Ftrailpack-webserver/lists"}