Giter VIP home page Giter VIP logo

wyr's Introduction

๐Ÿšจ Deprecation Notice ๐Ÿšจ

This package is deprecated, โ„น see here for more information

wyr

A simple (literally 1 file) package to get would-your-rather questions, easy to use and small

Install

npm i wyr
  • Typescript and Javascript compatible

Usage

Typescript
import wyr from 'wyr';

// wyr is a function and returns a promise with a object containing your questions
wyr().then((response) => {  // or .then(console.log) hehe
console.log(response)
})
Javascript
const wyr = require('wyr').default


// wyr is a function and returns a promise with a object containing your questions
wyr().then((response) => {  // or .then(console.log) hehe
console.log(response)
})

A example of returned response

{
  blue: {
    question: 'Drive 200 miles well over the legal drunken limit',      
    votes: '620,500'
  },
  red: {
    question: 'Drive 200 miles after being awake for 72 hours straight',
    votes: '970,048'
  }
}

ex: To access the blue question: .blue.question, and the count of blue .blue.votes

  • and for red vice versa

Support

  • I am available in my discord server

Invite

License

  • This repository and the code inside it is licensed under the MIT License. Read LICENSE for more information.

Other

My github

Discord-Invite

wyr's People

Contributors

typicalninja avatar

Stargazers

 avatar

Watchers

 avatar

wyr's Issues

๐Ÿšจ Deprecation Notice ๐Ÿšจ

๐Ÿšจ Deprecation Notice ๐Ÿšจ

Hey everyone,
Quick heads up โ€“ the wyr npm package is getting deprecated. Unfortunately, the site we were grabbing our 'Would You Rather' data from, either.io, has been offline for months and have not shown any sign of coming back.

So, I've decided to retire this project. Thanks to all of you who used it!

Don't worry, though! I've got other cool stuff going on:

๐ŸŒ google-sr - Simple & Fast Package for scraping Google search results without the need for an API key. ๐Ÿš€
๐Ÿ“‚ download-github-files - Download Individual Directories from github easy and fast
๐Ÿ’ฌ discord-slash-manager - Simple & Up to date tool to manage and view Discord interactions for any application. โœจ

Catch you later! Happy coding! ๐Ÿš€

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.