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

react-thanos

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-thanos

React hooks implementation of Google's "Thanos" easter egg

latest
Source
npmnpm
Version
2.0.0
Version published
Weekly downloads
10
-9.09%
Maintainers
1
Weekly downloads
 
Created
Source

react-thanos

React hooks implementation of Google's Thanos easter egg

Prerequisite

  • NodeJS
  • Project running React 16.8

Installation 📦

npm install react-thanos

or with yarn

yarn add react-thanos

Usage

import { Thanos } from "react-thanos";

<Thanos
  onSnap={() => console.log("I love you 3000! Decimate...") }
  onSnapReverse={() => console.log("Avengers assemble!") }
/>

Examples

See examples folder

Live demo https://react-thanos.netlify.com/

API (props)

onSnap()

Type: function

Called after Thanos snaps his finger

onSnapReverse()

Type: function

Called after Thanos undo/reverse snap

Inspiration

This project was inspired by the famous Google's Thanos easter egg released shortly after Avengers: Endgame premiered in cinemas.

Credits

Assets used in this project were downloaded from Google. I own no rights to them.

Contributing

Feel free to send in contributions of any kind. All are welcome 🙂

License

react-thanos is licensed under MIT

Keywords

thanos

FAQs

Package last updated on 17 Oct 2021

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