vinitshahdeo / Map-of-India

A Node.js script to generate the Map of India in terminal

Home Page:https://vinitshahdeo.github.io/Map-of-India/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Map of India

A Node.js script to generate the Map of India in terminal

Quick Start ๐Ÿš€

Open your terminal and run npm start

Setup โš™๏ธ

npm install && npm start

Commands ๐Ÿ”ฅ

  • npm run draw: Prints Map of India ๐Ÿ‡ฎ๐Ÿ‡ณ in the terminal

  • npm run wish: Prints a Happy Independence Day message in the terminal

Explained ๐Ÿ—๏ธ

cd src && cat index.js

Navigate to src/ folder and check out index.js.

For the binary version of the map, please checkout republic day/index.js.

cd republic\ day
node index.js
         .--,_
        ['    '\.
         \       `''|
         |         ,]
          `._      ].
            |     \
          _/       -'\
         ,'          ,'
       _/'          \                     ,..-''L_
  |--''              '-;__        |\     /      .,'
   \                      `--.__,'_ '----     ,-'
   `\                             \`-'\__    ,|
,--;/                             /     .| ,/
\__                               '|    /  / 
  ./  _-,                         _|   S@yaN
  \__/ /                        ,/        "
       |                      _/
       |                    ,/
       \                   /
        |              /.-'
         \           _/                   :
          |         /                      .
           |        |                     .
      .    |        |                     '.
      ;     \       /                     ;\
      '      |     |                
             \    _|                      : 
              \_,/                         "'
                                          : '
                                             '


  _   _                                                           
 | | | | __ _ _ __  _ __  _   _                                   
 | |_| |/ _` | '_ \| '_ \| | | |                                  
 |  _  | (_| | |_) | |_) | |_| |                                  
 |_|_|_|\__,_| .__/| .__/ \__, |            _                     
 |_ _|_ __   |_| | |_| _ _|___/__ _ __   __| | ___ _ __   ___ ___ 
  | || '_ \ / _` |/ _ \ '_ \ / _ \ '_ \ / _` |/ _ \ '_ \ / __/ _ \
  | || | | | (_| |  __/ |_) |  __/ | | | (_| |  __/ | | | (_|  __/
 |___|_| |_|\__,_|\___| .__/ \___|_| |_|\__,_|\___|_| |_|\___\___|
 |  _ \  __ _ _   _   |_|                                         
 | | | |/ _` | | | |                                              
 | |_| | (_| | |_| |                                              
 |____/ \__,_|\__, |                                              
              |___/                                               

Dependencies ๐ŸŽ‰

  • Figlet: An NPM module used to turn a string into ASCII art.

  • Chalk: An NPM module used for terminal string styling.

Support โค๏ธ

Acknowledgement ๐Ÿค—

  • The image used in this repo is taken from here.

  • This repository is inspired from a StackOverflow thread.

Author ๐Ÿ†

Vinit Shahdeo

Follow on Twitter @Vinit_Shahdeo


if (_.isAwesome(thisRepo)) {
  thisRepo.star(); // thanks in advance :p
}

About

A Node.js script to generate the Map of India in terminal

https://vinitshahdeo.github.io/Map-of-India/

License:MIT License


Languages

Language:JavaScript 100.0%