Skip to content

breejs/api

Repository files navigation

@breejs/api

build status code coverage code style styled with prettier made with lad

An API for Bree.

Table of Contents

Install

[npm][]:

npm install @breejs/api

[yarn][]:

yarn add @breejs/api

Usage

Extend bree with the plugin:

Bree.extend(require('@breejs/api').plugin);

const bree = new Bree(config);

The API will start automatically when the Bree constructor is called.

Options

Option Type Description
port Number The port the API will listen on.
jwt Object Configurations for JWT. Only option is secret which will be the secret used to verify JWT.

API

Check out the API Docs.

Contributors

License

MIT © Nick Baugh

About

An API for Bree.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published