1.0.0 • Published 4 years ago

word-frame-star v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

word-frame-star

A simple library to frame the words in console using star letters, for initial release this library is accepting only alphabetes, numbers and hyphen, This will be help to show the welcome note to developers while starting the your node project in console.

Installation

  npm install word-frame-star --save

Usage

  var frameStarObj = require('word-frame-star');
  
  frameStarObj.printWithBorders('welcome');

  frameStarObj.print('hello world');
  

output:-

  With Borders:-

  ***********************************************


  *   *  *****  *       ***    ***   *   *  *****
  *   *  *      *      *   *  *   *  ** **  *
  *   *  *      *      *      *   *  * * *  *
  *   *  *****  *      *      *   *  *   *  *****
  * * *  *      *      *      *   *  *   *  *
  ** **  *      *      *   *  *   *  *   *  *
  *   *  *****  *****   ***    ***   *   *  *****


  ***********************************************

  Without Borders:-


  *   *  *****  *      *       ***          *   *   ***   ****   *      ****
  *   *  *      *      *      *   *         *   *  *   *  *   *  *      *   *
  *   *  *      *      *      *   *         *   *  *   *  *   *  *      *   *
  *****  *****  *      *      *   *         *   *  *   *  ****   *      *   *
  *   *  *      *      *      *   *         * * *  *   *  * *    *      *   *
  *   *  *      *      *      *   *         ** **  *   *  *  *   *      *   *
  *   *  *****  *****  *****   ***          *   *   ***   *   *  *****  ****

Functions

  • printWithBorders
  • print

Tests

  npm test.js

Release History

  • 0.1.1 Initial release