Go to file
RenovateBot 379e828905
All checks were successful
continuous-integration/drone/push Build is passing
Update dependency @typescript-eslint/eslint-plugin to v6 (#77)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint) | devDependencies | major | [`^5.54.0` -> `^6.0.0`](https://renovatebot.com/diffs/npm/@typescript-eslint%2feslint-plugin/5.59.6/6.8.0) |

---

### Release Notes

<details>
<summary>typescript-eslint/typescript-eslint (@&#8203;typescript-eslint/eslint-plugin)</summary>

### [`v6.8.0`](36aecb6a83...d475f88575)

[Compare Source](36aecb6a83...d475f88575)

### [`v6.7.5`](d948dc4a21...36aecb6a83)

[Compare Source](d948dc4a21...36aecb6a83)

### [`v6.7.4`](91a3e0c85a...d948dc4a21)

[Compare Source](91a3e0c85a...d948dc4a21)

### [`v6.7.3`](ddb858981f...91a3e0c85a)

[Compare Source](ddb858981f...91a3e0c85a)

### [`v6.7.2`](79ffff05db...ddb858981f)

[Compare Source](79ffff05db...ddb858981f)

### [`v6.7.0`](a3a3932129...79ffff05db)

[Compare Source](a3a3932129...79ffff05db)

### [`v6.6.0`](4f34d0ba34...a3a3932129)

[Compare Source](4f34d0ba34...a3a3932129)

### [`v6.5.0`](ef1367eeed...4f34d0ba34)

[Compare Source](ef1367eeed...4f34d0ba34)

### [`v6.4.1`](14bea42e48...ef1367eeed)

[Compare Source](14bea42e48...ef1367eeed)

### [`v6.4.0`](0a1de14ba2...14bea42e48)

[Compare Source](0a1de14ba2...14bea42e48)

### [`v6.3.0`](948b061462...0a1de14ba2)

[Compare Source](948b061462...0a1de14ba2)

### [`v6.2.1`](c869aa1792...948b061462)

[Compare Source](c869aa1792...948b061462)

### [`v6.2.0`](d98f1e811a...c869aa1792)

[Compare Source](d98f1e811a...c869aa1792)

### [`v6.1.0`](6ae1fa74b1...d98f1e811a)

[Compare Source](6ae1fa74b1...d98f1e811a)

### [`v6.0.0`](cba0d113bb...6ae1fa74b1)

[Compare Source](cba0d113bb...6ae1fa74b1)

### [`v5.62.0`](2f46341a14...cba0d113bb)

[Compare Source](2f46341a14...cba0d113bb)

### [`v5.61.0`](f74862cbfb...2f46341a14)

[Compare Source](f74862cbfb...2f46341a14)

### [`v5.60.1`](c09b1c0252...f74862cbfb)

[Compare Source](c09b1c0252...f74862cbfb)

### [`v5.60.0`](a91bb9e264...c09b1c0252)

[Compare Source](a91bb9e264...c09b1c0252)

### [`v5.59.11`](9768e989d3...a91bb9e264)

[Compare Source](9768e989d3...a91bb9e264)

### [`v5.59.10`](a2b6b2e0a1...9768e989d3)

[Compare Source](a2b6b2e0a1...9768e989d3)

### [`v5.59.9`](391a6702c0...a2b6b2e0a1)

[Compare Source](391a6702c0...a2b6b2e0a1)

### [`v5.59.8`](5166a00e1a...391a6702c0)

[Compare Source](5166a00e1a...391a6702c0)

### [`v5.59.7`](5b0e577f25...5166a00e1a)

[Compare Source](5b0e577f25...5166a00e1a)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC43NC4yIiwidXBkYXRlZEluVmVyIjoiMzcuMC4wIiwidGFyZ2V0QnJhbmNoIjoiZGV2ZWxvcCJ9-->

Reviewed-on: https://gitea.vylpes.xyz/RabbitLabs/random-bunny/pulls/77
Co-authored-by: Renovate Bot <renovate@vylpes.com>
Co-committed-by: Renovate Bot <renovate@vylpes.com>
2023-10-23 13:25:22 +01:00
.gitea Add Gitea templates 2023-02-24 17:33:39 +00:00
.github Create FUNDING.yml 2021-05-10 21:50:20 +01:00
.gitlab Update default.md 2021-01-15 18:15:14 +00:00
src Fix fetch not using error system when unable to fetch (#100) 2023-10-20 17:31:38 +01:00
tests Fix fetch not using error system when unable to fetch (#100) 2023-10-20 17:31:38 +01:00
.drone.yml Add push event to .drone.yml 2023-04-29 14:43:47 +01:00
.eslintignore Setup Jest (#57) 2023-04-22 13:20:30 +01:00
.eslintrc Setup Jest (#57) 2023-04-22 13:20:30 +01:00
.gitignore Add error codes and error messages to failed results (#89) 2023-09-15 15:18:57 +01:00
.gitlab-ci.yml Add aslant to gitlab project ci 2021-01-13 21:08:47 +00:00
.npmignore Setup Jest (#57) 2023-04-22 13:20:30 +01:00
app.ts Update project to allow for ESM modules 2023-02-27 18:33:32 +00:00
CODE_OF_CONDUCT.md Update documentation with up to date information 2022-08-18 17:45:05 +01:00
CONTRIBUTING.md Fix documentation code breaks (#58) 2023-04-28 17:31:34 +01:00
jest.config.cjs Setup Jest (#57) 2023-04-22 13:20:30 +01:00
jest.setup.js Setup Jest (#57) 2023-04-22 13:20:30 +01:00
LICENSE Update licence copyright to 2023 (#59) 2023-04-28 17:31:55 +01:00
package.json Update dependency @typescript-eslint/eslint-plugin to v6 (#77) 2023-10-23 13:25:22 +01:00
readme.md Updatr documentation to remove maxTries variable 2023-02-22 18:19:47 +00:00
renovate.json Update 'renovate.json' 2022-12-28 18:43:41 +00:00
tsconfig.json Setup Jest (#57) 2023-04-22 13:20:30 +01:00
yarn.lock Update dependency @typescript-eslint/eslint-plugin to v6 (#77) 2023-10-23 13:25:22 +01:00

random-bunny

Get a random image url from a subreddit of your choosing.

Install

npm install --save random-bunny

or if you're using yarn

yarn add random-bunny

Usage

import randomBunny from "random-bunny";

// ... In an async function
const result = await randomBunny('rabbits', 'hot');
console.log(result);

API

randomBunny()

Returns a json string for a random post. Accepts 2 arguments: subreddit, and sortby ('new', 'hot', 'top')

The json string which gets returned consists of:

  • archived
  • downs
  • hidden
  • permalink
  • subreddit
  • subredditSubscribers
  • title
  • ups
  • url

sortBy will default to 'hot' if not given or invalid

Notes

License

MIT © Vylpes