Creates an image of a Dead by Daylight build.
npm install --save render-dead-by-daylight-build@^1.1.1
yarn add render-dead-by-daylight-build@^1.1.1
(if configured properly)
npm install --save @jaid/render-dead-by-daylight-build@^1.1.1
This image is rendered by this code:
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")
Setting up:
git clone [email protected]:jaid/render-dead-by-daylight-build.git
cd render-dead-by-daylight-build
npm install
Testing:
npm run test:dev
Testing in production environment:
npm run test
MIT License
Copyright © 2020, Jaid <[email protected]> (https://github.com/jaid)