Giter VIP home page Giter VIP logo

alphabetjs's Introduction


     /\     |ˉ|         |ˉˉˉˉˉˉˉˉˉ\ |ˉ|      |ˉ|     /\     |ˉˉˉˉˉˉˉˉˉ\ |ˉˉˉˉˉˉˉˉˉˉ||ˉˉˉˉˉˉˉˉˉˉˉ|
    /  \    | |         | |ˉˉˉˉˉˉ\ \| |      | |    /  \    | |ˉˉˉˉˉ\ | | |ˉˉˉˉˉˉˉˉ  ˉˉˉˉ| |ˉˉˉˉ 
   / /\ \   | |         | |      | ||  ˉˉˉˉˉˉ  |   / /\ \   |  ˉˉˉˉˉ  / |  ˉˉˉˉˉˉˉˉ|     | |     
  / /  \ \  | |         | ˉˉˉˉˉˉˉ  /| |ˉˉˉˉˉˉ| |  / /  \ \  | |ˉˉˉˉˉ\ \ | |ˉˉˉˉˉˉˉˉ      | |     
 /  ˉˉˉˉ  \ | |         | |ˉˉˉˉˉˉˉˉ | |      | | /  ˉˉˉˉ  \ | |     /  || |              | |     
/ /ˉˉˉˉˉˉ\ \|  ˉˉˉˉˉˉˉˉ|| |         | |      | |/ /ˉˉˉˉˉˉ\ \|  ˉˉˉˉˉ  / |  ˉˉˉˉˉˉˉˉ|     | |     
ˉˉ        ˉˉ ˉˉˉˉˉˉˉˉˉˉ ˉˉˉ          ˉ        ˉ ˉˉ        ˉˉ ˉˉˉˉˉˉˉˉˉ   ˉˉˉˉˉˉˉˉˉˉ      ˉˉˉ     

#AlphabetJS

AlphabetJS is a small tool to help you output big English character in console/shell or anyother platform.


#Usage

###In browser

Import alphabet.js or alphabet.min.js

 <script type="text/javascript" src="alphabet.min.js"></script>

Then you can use it to print character in console:

 console.log(Alphabet('LJB23','stereo'));

And then you get:

|ˉ|ˉ|         |ˉˉˉˉˉˉˉˉˉ|ˉ||ˉˉˉˉˉˉˉˉˉ\ˉ\  /ˉˉˉˉˉˉˉˉ\ˉ\ |ˉˉˉˉˉˉˉˉˉˉ\ˉ\
| | |         ˉˉˉˉˉ| |ˉ|ˉˉˉ| |ˉ|ˉˉˉ\ | | / /ˉ/ˉˉˉˉ\ \ \ˉˉˉˉˉˉˉˉˉ| |ˉ|
| | |              | | |   |  ˉˉˉˉˉ  / / ˉˉˉˉ     / /ˉ/|ˉˉˉˉˉˉˉˉ  /ˉ/
| | |              | | |   | |ˉ|ˉˉˉ\ \ \ |ˉˉˉˉˉˉˉˉ / / ˉˉˉˉˉˉˉˉˉ| \ˉ\
| | |         \ˉ\ˉ\/ | |   | | |   /  | || |ˉ|ˉˉˉˉˉˉˉ           / |ˉ|
|  ˉˉˉˉˉˉˉˉ|ˉ| \ ˉˉ / /    |  ˉˉˉˉˉ  / /|  ˉˉˉˉˉˉˉˉ|ˉ||ˉˉˉˉˉˉˉˉ  /ˉ/
ˉˉˉˉˉˉˉˉˉˉˉˉˉˉ  ˉˉˉˉˉˉ     ˉˉˉˉˉˉˉˉˉˉˉˉ  ˉˉˉˉˉˉˉˉˉˉˉˉˉˉˉˉˉˉˉˉˉˉˉˉˉˉˉ 

###In node

Ise npm to install it

 npm install alphabetjs

Then you can require it in node:

 Alphabet = require('alphabetjs');
  

Then you can use it to print character in shell:

 console.log(Alphabet('KOBE24','planar'));

And then you get:

|ˉ|    /ˉ/  /ˉˉˉˉˉˉˉˉ\ |ˉˉˉˉˉˉˉˉˉ\ |ˉˉˉˉˉˉˉˉˉˉ| /ˉˉˉˉˉˉˉˉ\     /ˉˉˉ|   
| |   / /  / /ˉˉˉˉˉˉ\ \| |ˉˉˉˉˉ\ | | |ˉˉˉˉˉˉˉˉ / /ˉˉˉˉˉˉ\ \   / /| |   
|  ˉˉˉ |   | |      | ||  ˉˉˉˉˉ  / |  ˉˉˉˉˉˉˉˉ|ˉˉ       / /  / / | |   
| |ˉˉˉ\ \  | |      | || |ˉˉˉˉˉ\ \ | |ˉˉˉˉˉˉˉˉ |ˉˉˉˉˉˉˉˉ /  / /  | |   
| |    \ \ \ \      / /| |     /  || |         | |ˉˉˉˉˉˉˉ  |  ˉˉˉˉ ˉˉˉ|
| |     \ \ \ ˉˉˉˉˉˉ / |  ˉˉˉˉˉ  / |  ˉˉˉˉˉˉˉˉ||  ˉˉˉˉˉˉˉˉ| ˉˉˉˉˉ| |ˉˉ 
 ˉ       ˉ   ˉˉˉˉˉˉˉˉ   ˉˉˉˉˉˉˉˉˉ   ˉˉˉˉˉˉˉˉˉˉ  ˉˉˉˉˉˉˉˉˉˉ       ˉˉˉ 


#API

###Alphabet(str,character_type);

@param {string} str : capital letter or number, the string you want to output.

@param {string} character_type : 'planar' or 'stereo' , the style of the character

alphabetjs's People

Contributors

starkwang avatar

Watchers

James Cloos avatar  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.