word-frame-star

to frame the word using star letters in console.

Usage no npm install needed!

<script type="module">
  import wordFrameStar from 'https://cdn.skypack.dev/word-frame-star';
</script>

README

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