Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
hapi-waypointer
Advanced tools
A HAPI plug-in that provides modern auto documentation of APIs using Waypointer themes
A HAPI plug-in that provides a template framework for OpenAPI (aka swagger).
$ npm install hapi-waypointer
```
``` javascript
const Inert = require('inert');
const Vision = require('vision');
const HapiSwagger = require('hapi-swagger');
const Waypointer = require('hapi-waypointer');
let server = new Hapi.Server();
server.connection({
host: 'localhost',
port: 3007
});
let waypointerOptions = {
'themes': [{
theme: require('waypointer-plain'),
options: {'path': '/plain'}
}]
}
server.register([
Inert,
Vision,
HapiSwagger,
{
register: Waypointer,
options: waypointerOptions
}], (err) => {
server.route(Routes);
server.start((err) => {
if (err) {
console.log(err);
} else {
console.log('Server running at:', server.info.uri);
}
});
});
```
## Current themes
* [Plain](https://github.com/glennjones/waypointer-plain) - A plain html theme.
* [Hub](https://github.com/glennjones/waypointer-hub) - A theme based lossly on githubs API documentation style.
* [Form](https://github.com/glennjones/waypointer-form) - A form or playground theme
## Lab test
The project has integration and unit tests. To run the test within the project type one of the following commands.
```bash
$ lab
$ lab -r html -o coverage.html
$ lab -r html -o coverage.html --lint
$ lab -r console -o stdout -r html -o coverage.html --lint
```
## Issues
If you find any issue please file here on github and I will try and fix them.
FAQs
A HAPI plug-in that provides modern auto documentation of APIs using Waypointer themes
We found that hapi-waypointer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.