New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

feedback.js

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

feedback.js

Emit simple custom feedback messages.

  • 0.1.61
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

feedback.js

Emit simple custom feedback messages.

Install

Get it using npm.

npm install feedback.js --save

CSS

You can usxe the css by directly importing the mains.css from the dist folder.

@import "../node_modules/feedback.js/dist/main.css";

Usage

Check out live demo.

Feedback.emit(options)
options

Type: object

options.message

Type: string
Default: Unknown error.

Feedback message to be displayed

options.status

Type: string
Default: error

error or success, it stands for the class that will be added in the feedback element.

options.delay

Type: number
Default: it calculates the readtime by 4 words per second

Delay between the feedback entering and leaving the screen. This option is extremely optional, sice it automaticaly calculates the time at 4 words per second, but you can pass a custom number in milisseconds.

Example

    Feedback.emit({
      message: 'Something went wrong. Please wait.',
      status: 'error'
    });

Queue feature

feedback.js has the Queue feature, that allows you to emit how many messages you want, and they will be displayed one by one.

TODO

  • Create queue feature.
  • Create the bool options.closeByClick.
  • Create the false value to option.delay, for a infinite feedback.
  • Create the bool options.queue.

License

MIT

Keywords

FAQs

Package last updated on 09 May 2016

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc