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

demotivator

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

demotivator

An extensive JavaScript Library to integrate the power of (de)Motivator into your webapp.

  • 8.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

(de)Motivator.js

Technologies Used

TypeScript

Description

An extensive JavaScript Library to integrate the power of (de)Motivator into your webapp.

Use Cases

  • Casually throw shade at your users.
  • Need a random insult
  • Just been roasted, and you dont feel like visiting (de)Motivator
  • You feel as if your userbase's ego is far too high

Installation

via npm

Install the demotivator package

npm i demotivator

Include the demotivator package in your package.json (this should be done automatically by npm)

In your javascript file, import the demotivator package

var demotivator = require("demotivator")

via JavaScript

Create a JavaScript file, and add the code from the index.js to it. Add the JavaScript to your HTML file via a <script> tag.

Usage

In your HTML, add a <p> element with the id insult. This will be the element that will be updated with the insult.

Add any element, and pass the onclick="GenerateInsult()" attribute to it. This will be the element that will trigger the insult.

Update Schedule

DMV.js will follow the same update schedule as (de)Motivator, with a release every 2-3 weeks.

License

We are licenced under the Apache-2.0 licnse. Please see LICENSE for more information.

Keywords

FAQs

Package last updated on 12 Apr 2022

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