README
render-dead-by-daylight-build
Creates an image of a Dead by Daylight build.
Installation
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
Example
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")
Development
Setting up:
git clone git@github.com: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
License
MIT License
Copyright © 2020, Jaid <jaid.jsx@gmail.com> (https://github.com/jaid)