No description
Renovate Bot
ed5d170106
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [np](https://github.com/sindresorhus/np) | devDependencies | major | [`^9.0.0` -> `^10.0.0`](https://renovatebot.com/diffs/npm/np/9.2.0/10.0.5) | --- ### Release Notes <details> <summary>sindresorhus/np (np)</summary> ### [`v10.0.5`](https://github.com/sindresorhus/np/releases/tag/v10.0.5) [Compare Source](https://github.com/sindresorhus/np/compare/v10.0.4...v10.0.5) - Fix npm 10 compatibility for real ([#​744](https://github.com/sindresorhus/np/issues/744)) [`34409be`](https://github.com/sindresorhus/np/commit/34409be) ### [`v10.0.4`](https://github.com/sindresorhus/np/releases/tag/v10.0.4) [Compare Source](https://github.com/sindresorhus/np/compare/v10.0.3...v10.0.4) - Fix compatibility with npm 10 ([#​743](https://github.com/sindresorhus/np/issues/743)) [`4caa295`](https://github.com/sindresorhus/np/commit/4caa295) ### [`v10.0.3`](https://github.com/sindresorhus/np/releases/tag/v10.0.3) [Compare Source](https://github.com/sindresorhus/np/compare/v10.0.2...v10.0.3) - Fix publish OTP for Yarn Berry ([#​741](https://github.com/sindresorhus/np/issues/741)) [`02f60c7`](https://github.com/sindresorhus/np/commit/02f60c7) ### [`v10.0.2`](https://github.com/sindresorhus/np/releases/tag/v10.0.2) [Compare Source](https://github.com/sindresorhus/np/compare/v10.0.1...v10.0.2) - Use npm for tagging versions when pnpm is the chosen package manager ([#​739](https://github.com/sindresorhus/np/issues/739)) [`770418f`](https://github.com/sindresorhus/np/commit/770418f) ### [`v10.0.1`](https://github.com/sindresorhus/np/releases/tag/v10.0.1) [Compare Source](https://github.com/sindresorhus/np/compare/v10.0.0...v10.0.1) - Fix compatibility with npm 10 ([#​737](https://github.com/sindresorhus/np/issues/737)) [`9fdebd5`](https://github.com/sindresorhus/np/commit/9fdebd5) ### [`v10.0.0`](https://github.com/sindresorhus/np/releases/tag/v10.0.0) [Compare Source](https://github.com/sindresorhus/np/compare/v9.2.0...v10.0.0) ##### Breaking - Remove the `--yarn` flag ([#​730](https://github.com/sindresorhus/np/issues/730)) [`4b3b599`](https://github.com/sindresorhus/np/commit/4b3b599) - The functionality is replaced by `--package-manager`. See below. ##### Improvements - Add `--package-manager` flag ([#​730](https://github.com/sindresorhus/np/issues/730)) [`4b3b599`](https://github.com/sindresorhus/np/commit/4b3b599) - This acts like the [`packageManager` field](https://nodejs.org/api/packages.html#packagemanager) in package.json. `np` will default to reading package.json, and look for lockfiles to determine the best package manager as a last resort. - Add pnpm support ([#​730](https://github.com/sindresorhus/np/issues/730)) [`4b3b599`](https://github.com/sindresorhus/np/commit/4b3b599) </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:eyJjcmVhdGVkSW5WZXIiOiIzNy4wLjAiLCJ1cGRhdGVkSW5WZXIiOiIzNy4wLjAiLCJ0YXJnZXRCcmFuY2giOiJkZXZlbG9wIn0=--> Reviewed-on: #159 Co-authored-by: Renovate Bot <renovate@vylpes.com> Co-committed-by: Renovate Bot <renovate@vylpes.com> |
||
---|---|---|
.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