New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

fastify-bree

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastify-bree

[![Continuous Integration](https://github.com/climba03003/fastify-bree/actions/workflows/ci.yml/badge.svg)](https://github.com/climba03003/fastify-bree/actions/workflows/ci.yml) [![Package Manager CI](https://github.com/climba03003/fastify-bree/actions/wo

latest
Source
npmnpm
Version
3.0.5
Version published
Weekly downloads
50
-16.67%
Maintainers
1
Weekly downloads
 
Created
Source

fastify-bree

Continuous Integration Package Manager CI NPM version GitHub package.json version GitHub

This plugin integrate bree with fastify to support scheduling jobs.

Disclaimer: Although this plugin add a handy method to integrate with TypeScript. It is a known issue TypeScript do not have a good support about worker_threads.

Install

npm install fastify-bree --save

yarn add fastify-bree

Usage

import Fastifybree from 'fastify-bree'
import * as path from 'path'

fastify.register(Fastifybree, {
  customOptions: {
    root: path.resolve('jobs')
  }
})

await fastify.bree.add({
  name: 'cron' // which will use the file - `process.cwd()/jobs/cron.ts`
})

Options

options.customOptions

The options which will be directly passed to bree.

import Fastifybree from 'fastify-bree'

fastify.register(Fastifybree, {
  customOptions: {
    
  }
})

See: bree

options.autoStart

This options will add a onReady hooks to start all pre-registered jobs.

import Fastifybree from 'fastify-bree'

fastify.register(Fastifybree, {
  autoStart: true
})

options.autoClose

This options will add a onClose hooks to stop all running jobs.

import Fastifybree from 'fastify-bree'

fastify.register(Fastifybree, {
  autoClose: true
})

FAQs

Package last updated on 03 May 2024

Did you know?

Socket

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.

Install

Related posts