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

egg-msg-flash

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

egg-msg-flash

flash message

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

egg-msg-flash

NPM version build status Test coverage David deps Known Vulnerabilities npm download

Install

$ npm i egg-msg-flash --save

Usage

// {app_root}/config/plugin.js
exports.flash = {
    enable: true,
    package: 'egg-msg-flash'
}

Configuration

// {app_root}/config/config.default.js
exports.flash = {
    key: 'flash'
}

see config/config.default.js for more detail.

Example

ctx.flash = {
    type: 'success',
    message: {
        some: 'one'
    }
}

// or

ctx.flash_success({some:'one'})

ctx.flash_error()
ctx.flash_info()
ctx.flash_warning()

ctx.request.flash(type, message)

// get message by

ctx.flash

Questions & Suggestions

Please open an issue here.

License

MIT

Keywords

egg

FAQs

Package last updated on 27 Apr 2018

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