Skip to content

importre/xmas-tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xmas-tree Build Status

🎄 xmas-tree ascii art

Install

$ npm install --save xmas-tree

Usage

const xmasTree = require('xmas-tree');

console.log(xmasTree());

Output


           *
         _/ \_
        \     /
        /_' '_\
         /'+ \
        / o o \
       /  -' *-\
      /.  oo+...\
     /o- @ o @o' \
    *-------------*
       [_______]
        \_____/

Decorations are generated randomly

API

xmasTree([options])

options

size

Type: number
Default: 15

color (for CLI)

Type: boolean
Default: false

version

Type: boolean
Default: false

CLI

$ npm install --global xmas-tree
$ xmas-tree --help

  Usage
    $ xmas-tree

  Options
    --size number
    --color
    --loop

  Examples
    $ xmas-tree
    $ xmas-tree --size 30
    $ xmas-tree --color
    $ xmas-tree --color --loop
    $ xmas-tree --version

Contributors

License

MIT © Jaewe Heo