• Stars
    star
    125
  • Rank 286,335 (Top 6 %)
  • Language
    JavaScript
  • Created over 11 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Plain text awsomizer

ASCIIFY

A hybrid npm module and CLI for turning plain text into ascii art. A pure JS figlet tool to make all your banners better.

                                    __________________________  ______________
                                    \__    ___/\_   _____/\   \/  /\__    ___/
Takes text, awesomizes it, returns    |    |    |    __)_  \     /   |    |   
                                      |    |    |        \ /     \   |    |   
                                      |____|   /_______  //___/\  \  |____|   
                                                       \/       \_/           

NPM

Dependency Status Build Status

Getting started

Install Node.js (tested on 0.8 and 0.10)

Install asciify and gasp:

npm install -g asciify

asciify "Boom" -f larry3d
 ____                                   
/\  _`\                                 
\ \ \L\ \    ___     ___     ___ ___    
 \ \  _ <'  / __`\  / __`\ /' __` __`\  
  \ \ \L\ \/\ \L\ \/\ \L\ \/\ \/\ \/\ \ 
   \ \____/\ \____/\ \____/\ \_\ \_\ \_\
    \/___/  \/___/  \/___/  \/_/\/_/\/_/

For a really good time call:

asciify -a "All The Fonts!"

Or use it as a node module:

asciify('Awesome', function(err, res){ console.log(res) });
   _____                                                     
  /  _  \  __  _  __  ____    ______  ____    _____    ____  
 /  /_\  \ \ \/ \/ /_/ __ \  /  ___/ /  _ \  /     \ _/ __ \ 
/    |    \ \     / \  ___/  \___ \ (  <_> )|  Y Y  \\  ___/ 
\____|__  /  \/\_/   \___  >/____  > \____/ |__|_|  / \___  >
        \/               \/      \/               \/      \/ 

And again with the font option:

asciify('Fonts?', {font:'3-d'}, function(err, res){ console.log(res) });

 ********                     **            **** 
/**/////                     /**           **//**
/**        ******  *******  ******  ******/** /**
/*******  **////**//**///**///**/  **//// //  ** 
/**////  /**   /** /**  /**  /**  //*****    **  
/**      /**   /** /**  /**  /**   /////**  //   
/**      //******  ***  /**  //**  ******    **  
//        //////  ///   //    //  //////    //   

Now with color support thanks to chalk and @jlowgren

asciify( 'Make it come out green', {color:'green'}, function(err, res){ console.log(res)} );

Bonus method

asciify.getFonts(function (err, fonts) { fonts.forEach( console.log ) )

Thanks to

  • figlet-js which does the magic
  • optimist, smoothing the choppy waters of CLI argument parsing.
  • node-tap, robot friendly test codez, and all the wonders of npm.

Developing

 git submodule init
 git submodule update
 npm install
 npm test

Release History

  • 1.3.5 - Fix chalk dependency mix up
  • 1.3.4 - Add color option to pick your font color (DO NOT USE)
  • 1.3.3 - Add maxWidth option to allow output truncation
  • 1.3.2 - Update figlet-js with falsy input validation
  • 1.3.1 - Update figlet-js with unknown char fixes
  • 1.3.0 - Adds input validation and a getFonts method
  • 1.2.0 - Asciify now a good node citizen, callback takes an error as first arg.
  • 1.0.1 - IT BEGINS. ASCII BANNERS NOW MANDTORY.

More Repositories

1

ipfs-content-addressed-archiver

Use your browser to hash files with IPFS and export them as a verifiable content-addressed archive
JavaScript
37
star
2

grunt-asciify

figlet-js based grunt task turns plain-text into Awesome Text
JavaScript
20
star
3

dweb.link

Open ipfs:// links with dweb.link
JavaScript
20
star
4

meet-meteor

A shower of Meteor meetups
JavaScript
19
star
5

goto-meteor

A Meteor based, collections-centric experiment in geolocation and watching people arrive.
JavaScript
19
star
6

the-joy-of-css

How to touch a users eyes without hurting them or freaking out.
HTML
17
star
7

all-relative

πŸ’« convert a static site to use only relative urls
JavaScript
17
star
8

ipfs-get

Get and verify a file by CID from an IPFS gateway over http
JavaScript
13
star
9

meteor-the-medium-is-the-message

A talk about Meteor, MongoDB and D3, as a Meteor app.
JavaScript
10
star
10

github-deploy-key

A cli to add deploy keys to a repo
JavaScript
10
star
11

iojs-logo

The many logi of iojs
JavaScript
10
star
12

swatches

β—Ό color swatches for your README as a service.
JavaScript
9
star
13

instagrab

Grab the goods from your filtered image service provider
JavaScript
7
star
14

hoodie-plugin-punk

A global hoodie.store with no rules
JavaScript
7
star
15

node-logitech-dual-action-controller

Make a logitech gamepad do something useful
JavaScript
7
star
16

see-other

πŸ€– A service worker for very cachable web3 websites
JavaScript
7
star
17

makelunch

Whose cooking?
JavaScript
6
star
18

Leaflet.TileBuffer

A plugin to encourage Leaflet to load tiles beyond the viewport.
JavaScript
5
star
19

fiat-club

Let there be money
HTML
5
star
20

nodeschooling

Nodeschool homework assignments
JavaScript
5
star
21

java-awezomg

Everyone would prefer it if your Java project was awesome.
Java
4
star
22

meteor-london

Terraforming meetup data in a Meteor app
JavaScript
4
star
23

timeline

Experiments in HTML5 video, time-coded stills, and captioning
3
star
24

nodebotsday-london

Hack the planet!
CSS
3
star
25

trace

Trace bitmaps into svgs
JavaScript
2
star
26

invader

A random SpaceInvader generator
CoffeeScript
2
star
27

soundcloud-mp3

Guess the mp3 stream url from a soundcloud page url
JavaScript
2
star
28

meteor-slidedown

Slide decks from Markdown
JavaScript
2
star
29

oli.zilla.org.uk

Is that supposed to go there? A blabratory of textsperiments.
HTML
2
star
30

westnorwoodfeast.com

PHP
2
star
31

alexanderballard.co.uk

PHP
2
star
32

ucan-key

Generate a keypair to sign your UCANs
JavaScript
2
star
33

expectationviolation.com

PHP
1
star
34

davidlljones.com

The Life and Works of David Jones
Handlebars
1
star
35

birds

🐦 An illustrated database about birds
JavaScript
1
star
36

drone-up

Is my drone down for everyone of is it just me?
JavaScript
1
star
37

lnug-intro

JavaScript
1
star
38

pickup-api

WIP
TypeScript
1
star
39

kellie-matheson.com

JavaScript
1
star
40

nodebots-logo

Animated CSS logo for nodebots
1
star
41

athinavahla.com

CSS
1
star
42

maven-awezomg

The "no surprises" formula to maven awesomeness.
JavaScript
1
star
43

lotus-openrpc-client

Lotus API client in Typescript generated from the the OpenRPC definition
TypeScript
1
star
44

soundcloud-id

Guess a track id from a soundcloud url
JavaScript
1
star
45

interactive-maps

A whisle stop tour of interactive mapping
JavaScript
1
star
46

asciicon

A lexicon of plain text emoji awesomeness
JavaScript
1
star
47

lol

A CLI tool to get local and english language names from a directory of locales.
JavaScript
1
star
48

bluffers-guide-to-cooperative-multitasking

A bluffers-guide-to-cooperative-multitasking (WIP)
JavaScript
1
star
49

inspire-polygon-list

Scrape the full list of INSPIRE polygon file names, for great good
JavaScript
1
star
50

miraclemethods.org

JavaScript
1
star
51

moon

πŸŒ™ an alternative IPFS gateway
JavaScript
1
star
52

add-to-estuary

➟ Store your files on Estuary from a GitHub Action
1
star
53

karaoke-awezomg

Scala
1
star
54

catalog.org.uk

PHP
1
star
55

cutoutgirls.com

JavaScript
1
star
56

feast-cook-book

JavaScript
1
star
57

bluffers-guide-to-nodebots

A lightning talk for LNUG on the wonders of NodeBots
JavaScript
1
star
58

productionelement.com

JavaScript
1
star
59

approximort

Use morton numbers as leveldb keys, as a fast, rough, range-queryable, geospatial lookup.
JavaScript
1
star