Constructor
new require("Unicorn")(name)
Creates a new unicorn.
Parameters
Name | Type | Description |
---|---|---|
name | string | Unicorn name. |
A module representing a unicorn.
Methods
-
getArt() → {string}
-
Gets ASCII art with unicorn portrait.
Returns
stringMultiline string (LF eol) with a picture of a unicorn.
-
getName() → {string}
-
Gets unicorn name.
Returns
stringUnicorn name.