No description
Renovate Bot
c9d44683a0
All checks were successful
Test / build (push) Successful in 7s
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [@babel/traverse](https://babel.dev/docs/en/next/babel-traverse) ([source](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse)) | resolutions | patch | [`7.24.7` -> `7.24.8`](https://renovatebot.com/diffs/npm/@babel%2ftraverse/7.24.7/7.24.8) | --- ### Release Notes <details> <summary>babel/babel (@​babel/traverse)</summary> ### [`v7.24.8`](https://github.com/babel/babel/blob/HEAD/CHANGELOG.md#v7248-2024-07-11) [Compare Source](https://github.com/babel/babel/compare/v7.24.7...v7.24.8) ##### 👓 Spec Compliance - `babel-parser` - [#​16567](https://github.com/babel/babel/pull/16567) Do not use strict mode in TS `declare` ([@​liuxingbaoyu](https://github.com/liuxingbaoyu)) ##### 🐛 Bug Fix - `babel-generator` - [#​16630](https://github.com/babel/babel/pull/16630) Correctly print parens around `in` in `for` heads ([@​nicolo-ribaudo](https://github.com/nicolo-ribaudo)) - [#​16626](https://github.com/babel/babel/pull/16626) Fix printing of comments in `await using` ([@​nicolo-ribaudo](https://github.com/nicolo-ribaudo)) - [#​16591](https://github.com/babel/babel/pull/16591) fix typescript code generation for yield expression inside type expre… ([@​SreeXD](https://github.com/SreeXD)) - `babel-parser` - [#​16613](https://github.com/babel/babel/pull/16613) Disallow destructuring assignment in `using` declarations ([@​H0onnn](https://github.com/H0onnn)) - [#​16490](https://github.com/babel/babel/pull/16490) fix: do not add `.value: undefined` to regexp literals ([@​liuxingbaoyu](https://github.com/liuxingbaoyu)) - `babel-types` - [#​16615](https://github.com/babel/babel/pull/16615) Remove boolean props from `ObjectTypeInternalSlot` visitor keys ([@​nicolo-ribaudo](https://github.com/nicolo-ribaudo)) - `babel-plugin-transform-typescript` - [#​16566](https://github.com/babel/babel/pull/16566) fix: Correctly handle `export import x =` ([@​liuxingbaoyu](https://github.com/liuxingbaoyu)) ##### 💅 Polish - `babel-generator` - [#​16625](https://github.com/babel/babel/pull/16625) Avoid unnecessary parens around `async` in `for await` ([@​nicolo-ribaudo](https://github.com/nicolo-ribaudo)) - `babel-traverse` - [#​16619](https://github.com/babel/babel/pull/16619) Avoid checking `Scope.globals` multiple times ([@​liuxingbaoyu](https://github.com/liuxingbaoyu)) </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:eyJjcmVhdGVkSW5WZXIiOiIzNy40MzEuNCIsInVwZGF0ZWRJblZlciI6IjM3LjQzMS40IiwidGFyZ2V0QnJhbmNoIjoiZGV2ZWxvcCIsImxhYmVscyI6W119--> Reviewed-on: #193 Reviewed-by: Vylpes <ethan@vylpes.com> Co-authored-by: Renovate Bot <renovate@vylpes.com> Co-committed-by: Renovate Bot <renovate@vylpes.com> |
||
---|---|---|
.forgejo/workflows | ||
.gitea | ||
.github | ||
.gitlab | ||
docs | ||
src | ||
tests | ||
.eslintignore | ||
.eslintrc | ||
.gitignore | ||
.gitlab-ci.yml | ||
.npmignore | ||
.woodpecker.yml | ||
CODE_OF_CONDUCT.md | ||
CONTRIBUTING.md | ||
jest.config.cjs | ||
jest.setup.js | ||
LICENSE | ||
package.json | ||
readme.md | ||
renovate.json | ||
tsconfig.json | ||
yarn.lock |
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
Binary
The project can be downloaded as a binary for your system via the GitHub Releases or Gitea Releases page.
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
CLI
Random bunny can also be used as a CLI. This is accessible via the executable (see git releases) or via src/cli.ts
For more details, see the documentation.
Notes
- Node 4 or newer.
- based upon Random Puppy
Links
- Discord: Server Link
- Support: helpdesk@vylpes.com
License
MIT © Vylpes