npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@stephenpoole/deadbydaylight

v6.1.0

Published

A complete Dead by Daylight dataset.

Downloads

37

Readme

deadbydaylight

npm version Known Vulnerabilities Build Status codecov last commit issues

A complete Dead by Daylight dataset.

Getting Started

Install deadbydaylight and save to your package.json in one easy step.

With npm:

npm install @stephenpoole/deadbydaylight

With yarn:

yarn add @stephenpoole/deadbydaylight

Support

To support the development of this library, head over to deadlight.gg and click the Donate button. Any donations are greatly appreciated.

Usage

In the browser globally

  1. Insert the script tag in your html head:
<script src="https://cdn.jsdelivr.net/npm/@stephenpoole/deadbydaylight/en/deadbydaylight.js"></script>
  1. Instantiate and grab some data:
const { Language, Killer } = DeadByDaylight;
const dbd = DeadByDaylight.Client();
const nurse = dbd.killer(Killer.Nurse);
console.log(nurse);

In the browser with webpack

  1. Import deadbydaylight into your application:
import Dbd, { Killer } from "@stephenpoole/deadbydaylight";
  1. Instantiate and grab some data:
const dbd = Dbd();
const nurse = dbd.killer(Killer.Nurse);
console.log(nurse);

Documentation

You'll find the type documentation here: Documentation

Locales

Just like in-game, this library supports the following languages:

English (en)
Spanish (es)
German (de)
French (fr)
Italian (it)
Japanese (jp)
Korean (ko)
Polish (pl)
Russian (ru)
Taiwanese (th)
Turkish (tr)
Simplified Chinese (zh)

To set the locale

In the browser globally:

<script src="https://cdn.jsdelivr.net/npm/@stephenpoole/deadbydaylight/ko/deadbydaylight.js"></script>

In the browser with webpack:

import Dbd from "@stephenpoole/deadbydaylight/ko";

 

If your environment does not care about filesize, you can instead load all locales at once.

<script src="https://cdn.jsdelivr.net/npm/@stephenpoole/deadbydaylight/all/deadbydaylight.js"></script>

or

import Dbd from "@stephenpoole/deadbydaylight/all";

You can then specify the default locale when instantiating, or as a second parameter when calling any method.

const { Language, Killer } = DeadByDaylight;
const dbd = DeadByDaylight.Client(Language.French);
const nurse = dbd.killer(Killer.Nurse);
console.log(nurse); // french

const doctor = dbd.killer(Killer.Doctor, Language.Korean);
console.log(nurse); // korean

Data

Killers

{
        id: 1, (number, required)
        index: "SHAPE", (string, required)
        name: "The Shape", (string, required)
        difficulty: 2, (number, required, of type Difficulty)
        power: "EVIL_WITHIN", (string, required, of type powers[].index)
        story: "Some humans are simply bad seeds. Seeds infused with a distilled...", (string, required)
        description:
            "A haunting Killer, intent on monitoring survivors from a distance to feed his power, %bEvil Within%/b. The more he stalks, the stronger and faster he becomes.", (string, required)
        perks: [
            "SAVE_THE_BEST_FOR_LAST", (string, of type killerPerks[].index)
            ...
        ], (array, required, of length 3)
        addons: [
            "BOYFRIENDS_MEMO", (string, of type killerAddons[].index)
            ...
        ], (array, required)
        image: "http://hxt.nyc3.digitaloceanspaces.com/live/player/SH_charSelect_portrait.png" (string, required)
    }

Survivors

{
        id: 1, (number, required)
        index: "NEA_KARLSSON", (string, required)
        name: "Nea Karlsson", (string, required)
        difficulty: 1, (number, required, of type Difficulty)
        story: "Nea grew up in the small town of Hjo in Sweden. She had a...", (string, required)
        description:
            "An urban artist, able to easily escape and hide.", (string, required)
        perks: [
            "BALANCED_LANDING", (string, of type survivorPerks[].index)
            ...
        ], (array, required, of length 3)
        image: "http://hxt.nyc3.digitaloceanspaces.com/live/player/NK_charSelect_portrait.png" (string, required)
    }

Powers

{
    id: 1, (number, required)
    index: "EVIL_WITHIN", (string, required)
    name: "Evil Within", (string, required)
    owner: "SHAPE", (string, required, of type killers[].index or "NO_ONE")
    description:
        "The darkness inside feeds his determination to take the life of...", (string, required)
    flavor:
        "\"I met him, fifteen years ago; I was told there was nothing left...", (string, optional)
    ], (array, required, at least length 1)
    image: "http://hxt.nyc3.digitaloceanspaces.com/live/power/iconPowers_stalker1.png" (string, required)
}

Items

{
    id: 1, (number, required)
    index: "ENGINEERS_TOOLBOX", (string, required)
    name: "Mechanic's Toolbox", (string, required)
    description: "A metal box with specialised mechanics tools. Even without training...", (string, required)
    type: "TOOLBOX", (string, required, of type ItemType)
    rarity: 2, (number, required, of type Rarity)
    addons: [
        "BRAND_NEW_PART", (string, of type survivorAddons[].index)
        ...
    ], (array, required)
    image: "http://hxt.nyc3.digitaloceanspaces.com/live/item/iconItems_toolboxMechanics.png" (string, required)
}

Perks

Killer Perks

{
    id: 1, (number, required)
    index: "IRON_GRASP", (string, required)
    name: "Iron Grasp", (string, required)
    rarity: [
        1, (number)
        ...
    ], (array, required, of length 3)
    owner: "NO_ONE", (string, required, of type killers[].index or "NO_ONE")
    description:
        "Your powerful hold on the survivors causes escapes to be nearly impossible. Effects of survivor struggling are reduced by %s. Time to struggle out of your grasp is increased by %s.", (string, required)
    image: "http://hxt.nyc3.digitaloceanspaces.com/live/perk/iconPerks_ironGrasp.png", (string, required)
    flavor:
        "\"I met him, fifteen years ago; I was told there was nothing left...", (string, optional)
    tiers: [
        [
            "25%", (string or number)
            ...
        ], (array, of length count of {0} in description)
        ...
    ] (array, required, of length 3)
}

Survivor Perks

{
    id: 1, (number, required)
    index: "SLIPPERY_MEAT", (string, required)
    name: "Slippery Meat", (string, required)
    rarity: [
        1, (number)
        ...
    ], (array, required, of length 3)
    owner: "NO_ONE", (string, required, of type survivors[].index or "NO_ONE")
    description:
        "You have developed an efficient way to get out of Bear Traps and Hooks. Grants up to %s extra escape attempts on the hook. The odds of freeing yourself from Bear Traps are increased by %s.", (string, required)
    image: "http://hxt.nyc3.digitaloceanspaces.com/live/perk/iconPerks_slipperyMeat.png", (string, required)
    flavor:
        "\"I met him, fifteen years ago; I was told there was nothing left...", (string, optional)
    tiers: [
        [
            "1%", (string or number)
            ...
        ], (array, of length count of {0} in description)
    ] (array, required, of length 3)
}

Addons

Killer Addons

{
    id: 1, (number, required)
    index: "VHS_PORN", (string, required)
    name: "VHS Porn", (string, required)
    owner: "CLOWN", (string, required, of type killers[].index)
    description: "An all time classic.", (string, required)
    rarity: 2, (number, required, of type Rarity)
    flavor: "\"I met him, fifteen years ago; I was told there was nothing left...", (string, optional)
    image: "http://hxt.nyc3.digitaloceanspaces.com/live/addon/iconAddon_toolboxMechanics.png" (string, required)
}

Survivor Addons

{
    id: 1, (number, required)
    index: "CLEAN_RAG", (string, required)
    name: "Clean Rag", (string, required)
    type: "TOOLBOX", (string, required, of type items[].index)
    description: "A mundane rag. Suspiciously clean.", (string, required)
    rarity: 0, (number, required, of type Rarity)
    flavor: "\"I met him, fifteen years ago; I was told there was nothing left...", (string, optional)
    image: "http://hxt.nyc3.digitaloceanspaces.com/live/addon/iconAddon_cleanRag.png" (string, required)
}

Offerings

Killer Offerings

{
    id: 1, (number, required)
    index: "HOLLOW_SHELL", (string, required)
    name: "Hollow Shell", (string, required)
    rarity: 1, (number, required, of type Rarity)
    description: "Grants %b25%/b% extra Bloodpoints in all Categories.", (string, required)
    player: 1, (number, required, of type Player)
    flavor:
        "\"An unidentifiable cocoon which was breached by whatever was inside.\"", (string, optional)
    image: "http://hxt.nyc3.digitaloceanspaces.com/live/offering/iconFavors_hollowShell.png" (string, required)
}

Survivor Offerings

{
    id: 1, (number, required)
    index: "PETRIFIED_OAK", (string, required)
    name: "Petrified Oak", (string, required)
    rarity: 3, (number, required, of type Rarity)
    description:
        "Calms The Entity and prevents %b1%/b Hook from appearing.", (string, required)
    player: 0, (number, required, of type Player)
    flavor: "\"A deteriorating piece of petrified wood.\"", (string, optional)
    image: "http://hxt.nyc3.digitaloceanspaces.com/live/offering/iconFavors_petrifiedOak.png" (string, required)
}

Shared Offerings

{
    id: 1, (number, required)
    index: "BLOODY_PARTY_STREAMERS", (string, required)
    name: "Bloody Party Streamers", (string, required)
    rarity: 2, (number, required, of type Rarity)
    description:
        "Grants %b100%/b% bonus Bloodpoints in all Categories for all Players.", (string, required)
    player: 2, (number, required, of type Player)
    flavor:
        "\"A reminder of a bloody good time when people came together, but left screaming.\"",  (string, optional)
    image: "http://hxt.nyc3.digitaloceanspaces.com/live/offering/iconFavors_bloodyPartyStreamers.png" (string, required)
}

Realms

{
    id: 0, (number, required)
    index: "MACMILLAN_ESTATE", (string, required)
    name: "The MacMillan Estate", (string, required)
    owner: "TRAPPER", (string, required, of type killers[].index)
    image: "http://hxt.nyc3.digitaloceanspaces.com/live/map/iconMap_Ind_Mine.png" (string, required)
}

Maps

{
    id: 1, (number, required)
    index: "COAL_TOWER", (string, required)
    name: "Coal Tower", (string, required)
    realm: "MACMILLAN_ESTATE", (string, required, of type realms[].index)
    description:
        "Grants %b100%/b% bonus Bloodpoints in all Categories for all Players.", (string, required)
    image: "http://hxt.nyc3.digitaloceanspaces.com/live/map/iconMap_Ind_CoalTower.png" (string, required)
}

License

MIT