JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 869
  • Score
    100M100P100Q105879F
  • License Unlicense

Logo with ASCII-art text

Package Exports

  • asciiart-logo

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (asciiart-logo) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

asciiart-logo

Library asciiart-logo creates a rectangular panel with ASCII-art from application name, and optional additional information (author, application version, etc).

asciiart-logo uses FIGlet fonts for ASCII art title text.

Quick Start

Download and installation of the library

npm install --save asciiart-logo

Usage in source code

const logo = require('asciiart-logo');
console.log(
  logo({
    name: 'Foo Bar',
    font: 'Speed',
    padding: 5,
    margin: 2
  })
  .emptyLine()
  .right('version 3.7.123')
  .emptyLine()
  .wrap('This is a longer text that describes the values of the component for command line applications.')
  .render()
);

... and the output on the console:

                                                                        
  ,------------------------------------------------------------------.  
  |                                                                  |  
  |                                                                  |  
  |     __________                     ________                      |  
  |     ___  ____/______ ______        ___  __ )______ _________     |  
  |     __  /_    _  __ \_  __ \       __  __  |_  __ `/__  ___/     |  
  |     _  __/    / /_/ // /_/ /       _  /_/ / / /_/ / _  /         |  
  |     /_/       \____/ \____/        /_____/  \__,_/  /_/          |  
  |                                                                  |  
  |                                                                  |  
  |                                              version 3.7.123     |  
  |                                                                  |  
  |     This is a longer text that describes the values of the       |  
  |     component for command line applications.                     |  
  |                                                                  |  
  |                                                                  |  
  `------------------------------------------------------------------'  
                                                                        

You may be interested also in complete example code that shows typical usage of the asciiart-logo library. The example code may be tested with command node ./example.js in the root folder of the project.

Dependency

Component uses the library figlet for ASCII art text rendering.