Launch Week Day 1: Socket for Jira Is Now Available.Learn More
Socket
Book a DemoSign in
Socket

deity-generator

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deity-generator

A generator for deities

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
3
50%
Maintainers
1
Weekly downloads
 
Created
Source

Deity Generator

Generates a random Dwarf Fortress Deity.

Installation

npm install --save deity-generator

Usage

import { Deity } from 'deity-generator'

const deity = new Deity({ seed: 'seed' })

console.log(deity.name) // => ak Upuh
console.log(deity.gender) // => male
console.log(deity.spheres) // => [ 'rulership', 'jealousy' ]
console.log(deity.creature) // => cave swallow
console.log(deity.toString()) // => ak Upuh most often takes the form of a male cave swallow and is associated with rulership and jealousy.

Deity API

new Deity(props) => Deity

Used to create a new Deity.

FieldTypeDescription
props.seedstringSeed used to generate the deity.
props.namestringDeity's name.
props.genderstringDeity's gender.
props.creaturestringDeity's creature.
props.spheresstring[]Deity's spheres.

.name => string

Used to get the Deity's name.

.gender => string

Used to get the Deity's gender.

.spheres => string

Used to get the Deity's spheres.

.creature => string

Used to get the Deity's name.

.toString() => string

Used to descripe the Deity.

References

  • DF2014:Deity
  • DF2014:Creature
  • DF2014:Animals
  • DF2014:Deity

FAQs

Package last updated on 23 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts