Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jaid/render-dead-by-daylight-build
Creates an image of a Dead by Daylight build.
https://github.com/jaid/render-dead-by-daylight-build
dbd dead-by-daylight image image-generation lib library render util utility
Last synced: 26 days ago
JSON representation
Creates an image of a Dead by Daylight build.
- Host: GitHub
- URL: https://github.com/jaid/render-dead-by-daylight-build
- Owner: Jaid
- License: mit
- Created: 2020-03-25T06:19:23.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-03-03T18:16:47.000Z (almost 2 years ago)
- Last Synced: 2024-12-14T14:37:50.572Z (about 1 month ago)
- Topics: dbd, dead-by-daylight, image, image-generation, lib, library, render, util, utility
- Language: JavaScript
- Homepage: https://github.com/Jaid/render-dead-by-daylight-build
- Size: 2.3 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: readme.md
- Funding: .github/funding.yml
- License: license.txt
Awesome Lists containing this project
README
# render-dead-by-daylight-build
**Creates an image of a Dead by Daylight build.**
## Installation
```bash
npm install --save render-dead-by-daylight-build@^1.1.1
``````bash
yarn add render-dead-by-daylight-build@^1.1.1
```
(if [configured properly](https://help.github.com/en/github/managing-packages-with-github-packages/configuring-npm-for-use-with-github-packages))```bash
npm install --save @jaid/render-dead-by-daylight-build@^1.1.1
```## Example
![Example Screenshot](./readme/example.png)
This image is rendered by this code:
```javascript
import renderDeadByDaylightBuild from "render-dead-by-daylight-build"
import Jimp from "jimp"const perkIds = ["wellMakeIt", "noMither", "selfCare", "headOn"]
const screenshotBuffer = await renderDeadByDaylightBuild(perkIds)const jimp = await Jimp.read(screenshotBuffer)
await jimp.writeAsync("./build.png")
```## Development
Setting up:
```bash
git clone [email protected]:jaid/render-dead-by-daylight-build.git
cd render-dead-by-daylight-build
npm install
```
Testing:
```bash
npm run test:dev
```
Testing in production environment:
```bash
npm run test
```## License
[MIT License](https://raw.githubusercontent.com/jaid/render-dead-by-daylight-build/master/license.txt)
Copyright © 2020, Jaid \ (https://github.com/jaid)