https://github.com/importre/xmas-tree
🎄 xmas-tree ascii art
https://github.com/importre/xmas-tree
ascii-art chrismas-tree christmas
Last synced: 6 months ago
JSON representation
🎄 xmas-tree ascii art
- Host: GitHub
- URL: https://github.com/importre/xmas-tree
- Owner: importre
- License: mit
- Created: 2016-12-22T11:06:14.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-12-31T10:49:13.000Z (almost 8 years ago)
- Last Synced: 2025-03-28T17:21:23.203Z (6 months ago)
- Topics: ascii-art, chrismas-tree, christmas
- Language: JavaScript
- Homepage:
- Size: 130 KB
- Stars: 47
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# xmas-tree [](https://travis-ci.org/importre/xmas-tree)
> :christmas_tree: xmas-tree ascii art
![]()
## Install
```sh
$ npm install --save xmas-tree
```## Usage
```js
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 --helpUsage
$ xmas-treeOptions
--size number
--color
--loopExamples
$ xmas-tree
$ xmas-tree --size 30
$ xmas-tree --color
$ xmas-tree --color --loop
$ xmas-tree --version
```## Contributors
- Laura Brown
- http://laurabrown.ca## License
MIT © [Jaewe Heo](http://importre.com)