Nobody Pays (for) Magazines

    beanify-plugin
    TypeScript icon, indicating that this package has built-in type declarations

    3.0.2 • Public • Published

    beanify-plugin

    beanify-plugin is a plugin helper for Beanify.

    beanify>=3.0.5

    Install

    npm install beanify-plugin --save

    with yarn

    yarn add beanify-plugin
    

    Usage

    const bp = require('beanify-plugin')
    
    module.exports = bp(function (beanify, opts, next) {
      // your plugin code
      next()
    }, meta)
    
    // async await
    
    module.exports = bp(async function (beanify, opts) {
      // your plugin code
    }, meta)

    Metadata

    • name: when you set value, register creates a new scope.
    • prefix: the new scope route prefix.The prefix of the parent will be inherited
    • beanify: Used to detect the current beanify version

    Install

    npm i beanify-plugin

    DownloadsWeekly Downloads

    3

    Version

    3.0.2

    License

    MIT

    Unpacked Size

    5.6 kB

    Total Files

    10

    Last publish

    Collaborators

    • beanjs