Skip to content

A module to print out nested boxes to the command line

License

Notifications You must be signed in to change notification settings

mariotacke/boxception

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Boxception

Build Status GitHub license

This module prints out nested box ASCII art to the console. It accepts two inputs, the number of boxes and padding between them.

Example: node index.js 2

+---+
|+-+|
|| ||
|+-+|
+---+

Example: node index.js 3

+-----+
|+---+|
||+-+||
||| |||
||+-+||
|+---+|
+-----+

Example: node index.js 3 1

+---------+
|         |
| +-----+ |
| |     | |
| | +-+ | |
| | | | | |
| | +-+ | |
| |     | |
| +-----+ |
|         |
+---------+

Usage

node index.js <boxes> <padding>
  • <boxes> defines the number of nested boxes to create
  • <padding> defines the number of spaces used for padding, default 0

Tests

npm install
npm test

Tooling

About

A module to print out nested boxes to the command line

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages