Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including fly-notify with all npm packages installed. Try it out:

var flyNotify = require("fly-notify")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

fly-notify v0.3.4

Fly native OS notifications.

node-notifier plugin for _Fly_.

npm package

Usage

Check out the documentation to see the available options.

This plugin also allows you to specify a devicons icon by prefixing the icon that you want to use with dev:. octicons support planned as well.

Install

npm install -D fly-notify

Example

ES6

export default function* () {
  yield this.clear("build")
  yield this
    .source(paths.scripts)
    .babel({ stage: 0 })
    .uglify()
    .concat("all.min.js")
    .notify({
      title: "Fly Default",
      message: "Completed default task",
      icon: "dev:code_badge"
    })
    .target("build/js")
}

Earl Grey

provide: default
default = *->
  yield this.clear("build")
  yield chain this:
    @source("src/*.eg")
    @earl()
    @concat("index.js")
    @notify with {
      title = "Fly Default"
      message = "Completeled default task."
      icon = "dev:code_badge"
    }
    @target("lib")

Requirements

Here are node-notifier's requirements:

  • Mac OS X: >= 10.8 or Growl if earlier.
  • Linux: notify-osd installed (Ubuntu should have this by default)
  • Windows: >= 8, task bar balloon if earlier or Growl if that is installed.
  • General Fallback: Growl

License

MIT © Jake Russo et al

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free