Skip to content

vinitshahdeo/Map-of-India

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
}