render-dead-by-daylight-build

Creates an image of a Dead by Daylight build.

Usage no npm install needed!

<script type="module">
  import renderDeadByDaylightBuild from 'https://cdn.skypack.dev/render-dead-by-daylight-build';
</script>

README

render-dead-by-daylight-build

License Sponsor render-dead-by-daylight-build
Build status Commits since v1.1.1 Last commit Issues
Latest version on npm Dependents Downloads

Creates an image of a Dead by Daylight build.

Installation

render-dead-by-daylight-build on npm

npm install --save render-dead-by-daylight-build@^1.1.1

render-dead-by-daylight-build on Yarn

yarn add render-dead-by-daylight-build@^1.1.1

@jaid/render-dead-by-daylight-build on GitHub Packages
(if configured properly)

npm install --save @jaid/render-dead-by-daylight-build@^1.1.1

Example

Example Screenshot

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)