Giter VIP home page Giter VIP logo

font-ascii's Introduction

fontascii

Font Ascii

An Awesome Logger That will log an ASCII phrase for you! Import and use it in your code, or just use the CLI (command line interface)

howtouse

How to use

Easy! Just type this in your project

npm i --save font-ascii

or

npm i -g font-ascii

Using - CLI

If you installed globally, just: font-ascii 'Hello World'

Otherwise, use it like: $(npm bin)/font-ascii 'Hello World'

Using - Importing

You can import it on your project like this:

//ES6 Flavour
import formPhrase from 'font-ascii';

//Old fashioned
var formPhrase = require('font-ascii').default;

Using

formPhrase('Awesome Phrase');

Configuration

Typeface

Per default, it will use a random font, but you can choose one of the following: (if there is a typo, it will fallback to a random font!)

  • Acrobatic
  • Alpha
  • Avatar
  • Big
  • BigMoneyne
  • BigMoneynw
  • BigMoneyse
  • BigMoneysw
  • Blocks
  • Bulbhead
  • Cards
  • Chiseled
  • Crawford2
  • Crazy
  • DancingFont
  • Diagonal3d
  • Doh
  • Doom
  • EftiWall
  • Epic
  • Firefontk
  • FireFonts
  • FlowerPower
  • FunFace
  • FunFaces
  • Ghost
  • Graceful
  • Graffiti
  • Impossible
  • Isometric1
  • Isometric2
  • Isometric3
  • Isometric4
  • JSBracketLetters
  • LilDevil
  • Merlin1
  • Modular
  • Ogre
  • PatorjkCheese
  • PatorjkHeX
  • Rectangles
  • Slant
  • SlantRelief
  • Small
  • SmallIsometric1
  • SmallSlant
  • Soft
  • Standard
  • StarWars
  • SubZero
  • SwampLand
  • Sweet
  • Train
  • Twisted
  • Varsity
  • WetLetts

And pass it like:

formPhrase('Hello', { typeface: 'Diagonal3d' });

or

font-ascii Hello -t Diagonal3d

or

font-ascii Hello --typeface Diagonal3d

Color

You can choose one of these defaults color. Otherwise it's always random:

  • 'red'
  • 'green'
  • 'yellow'
  • 'blue'
  • 'magenta'
  • 'cyan'
  • 'white'
  • 'gray'
  • 'grey'
formPhrase('Hello', { typeface: 'Diagonal3d', color: 'red' });

or

font-ascii Hello -c red

or

font-ascii Hello --color red

Object

const config = {
  typeface: STRING,
  color: STRING,
  verbose: BOOLEAN,
};

Contributing

It's a random idea I had and done in my free time, so probably it contains a lot of bugs, but feel free to open a PR with any optimization! Anything would be awesome!

And ISSUES, open them if you find anything wrong.

LOTS AND LOTS of kudos to this guys, and his awesome site:

Patorjk

There you'll find shit ton of other fonts.

Development

First clone the repo:

git clone [email protected]:Sauloxd/font-ascii.git

Enter the cloned repo and install dependencies! Make sure you are using yarn (since its my package manager of choice) - How to install yarn

cd font-ascii
yarn install

Just call this command!

yarn start hello

And it will call the development version of this project!

There is no currently easy way to test the compiled version, so we must believe the @babel power :)

font-ascii's People

Contributors

sauloxd avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.