Skip to content
Kito Kurone (黒音キト) edited this page Jun 7, 2020 · 4 revisions

Functions


detail (CLI) / getDetail (Library)

Get detailed information on personality

Usage

dantalion detail 555
import { getDetail } from '@kurone-kito/dantalion-core';
// const { getDetail } = require('@kurone-kito/dantalion-core');

console.log(getDetail('555'));

API

dantalion detail [genius]
type getDetail = (genius: Genius) => Detail | undefined;

Parameters

  • [[genius|Types#genius]]: The types of personality.

Returns

Detailed information on personality.

(CLI only): If the param is invalid, it will be available arguments list.
(Library only): If the param is invalid, it will be undefined.


personality (CLI) / getPersonality (Library)

Get the personality information corresponding to the specified birthday.

Usage

dantalion personality 1993-10-09
import { getPersonality } from '@kurone-kito/dantalion-core';
// const { getPersonality } = require('@kurone-kito/dantalion-core');

getPersonality('1993-10-09');

API

dantalion personality <birthday>
type getPersonality = (
  birthday: string | number | Date
) => Personality | undefined;

Parameters

  • birthday: Specify a birthday within the range from February 1, 1873, to December 31, 2050. Ignore the time information.

Returns

The object that the personality information. If the date is over the range, it will be undefined.

Clone this wiki locally