1.0.1 • Published 7 years ago

print-shape v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

print-shape

print out a variety of shapes from your console

Usage

// index.js
const { triangle, square, rhombus } = require('print-shape')

triangle(6)
square(6)
rhombus(6)

execute with

# node index.js

in terminal

     /\
    /  \
   /    \
  /      \
 /        \
/----------\
|------|
|      |
|      |
|      |
|      |
|------|
  /-\
 /   \
/     \
\     /
 \   /
  \-/

API

.triangle(num: number): null

no return just log the shape in terminal

.square(num: number(>1)): null

no return just log the shape in terminal

.rhombus(num: number(even)): null

no return just log the shape in terminal

License

MIT © Song Wang

1.0.1

7 years ago

1.0.0

7 years ago