Socket
Socket
Sign inDemoInstall

block-letters

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    block-letters

Generate block letters


Version published
Maintainers
1
Created

Readme

Source

Block Letter Generator

Easily generate block letters

Install

$ npm install block-letters

Usage

const blockLetterGenerator = require('block-letters');

blockLetterGenerator('Default font');
/*
    | |  ____ /-----+  __ _  _   _ ,-, _____    /-----+  ___   _   _  _____
 __,| | / __ \| ----+ / _' || | | || ||_, ,_|   | ----+ / _ \ | \ | ||_, ,_|
/ __  ||  ___/| +---+| (_| || |_| || |  | |     | +---+( |_| )|  \| |  | |  
\___,_| \____/|_|     \__,_|\___,_||_|  |_|     |_|     \___/ |_|\__|  |_|  
*/

blockLetterGenerator('Multiline with#custom line#breaks', {lineBreak: '#'});
/*
,-._._  _   _ ,-, _____  _ ,-, _  _   _   ____     _, ,_  _  _____ | |    
| , , \| | | || ||_, ,_|l_l| |l_l| \ | | / __ \   | |_| |l_l|_, ,_|| |,__
| | | || |_| || |  | |  | || || ||  \| ||  ___/   | | | || |  | |  |  _  \
|_|_|_|\___,_||_|  |_|  |_||_||_||_|\__| \____/   |_,_,_||_|  |_|  |_| |_|
  ____  _   _  _____  _____   ___  ,-._._    ,-, _  _   _   ____
 / ___\| | | |/ ____/|_, ,_| / _ \ | , , \   | |l_l| \ | | / __ \
| (____| |_| |\____ \  | |  ( |_| )| | | |   | || ||  \| ||  ___/
 \____/\___,_|/_____/  |_|   \___/ |_|_|_|   |_||_||_|\__| \____/
| |     _____   ____   __ _ | | / / _____
| |,__ |  __ \ / __ \ / _' ||  ' / / ____/
|  __ \|    _||  ___/| (_| || |\ \ \____ \
|_,___/|_|\_\  \____/ \__,_||_| \_|/_____/
*/

blockLetterGenerator('Infinite possibilities', {font: 'morse'});
/*
../-./..-./../-./../-/./ /.--./---/.../.../../-.../../.-../../-/.././...
*/

blockLetterGenerator('With custom spacers', {font: 'morse', spacer: '#'});
/*
.--#..#-#....# #-.-.#..-#...#-#---#--# #...#.--.#.-#-.-.#.#.-.#...
*/

Examples

See test.js for examples

License

MIT

FAQs

Last updated on 22 May 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc