![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
demotivator
Advanced tools
An extensive JavaScript Library to integrate the power of (de)Motivator into your webapp.
An extensive JavaScript Library to integrate the power of (de)Motivator into your webapp.
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 required packages
import { insults, GenerateInsult } from 'demotivator';
In your HTML, add any 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.
This is an example for a basic web page integrated with (de)Motivator.js
<!--index.html-->
<!--As always, you'll need a module bundler like webpack or rollup to compile your code into a form the browser can understand. -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>(de)Motivator.js example</title>
<script src="dist/js/index.js" defer></script>
<!--Notice the "dist" directory ^^ -->
</head>
<body>
<br>
<h1>(de)Motivator.js example</h1>
<button onclick="GenerateInsult()">Click Me</button>
<br/>
<div>
<p id = "insult">
Insult will appear here
</p>
// src/index.js
// As always, you'll need a module bundler like webpack or rollup to compile your code into a form the browser can understand.
import { insults, GenerateInsult } from 'demotivator';
DMV.js will follow the same update schedule as (de)Motivator, with a release every 2-3 weeks.
We are licenced under the Apache-2.0 licnse. Please see LICENSE for more information.
FAQs
A extremely large array of 300+ insults so you can integrate the power of (de)Motivator into your webapp.
The npm package demotivator receives a total of 0 weekly downloads. As such, demotivator popularity was classified as not popular.
We found that demotivator demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.