项目作者: vinitshahdeo

项目描述 :
A Node.js script to generate the Map of India in terminal
高级语言: JavaScript
项目地址: git://github.com/vinitshahdeo/Map-of-India.git
创建时间: 2020-08-14T23:50:19Z
项目社区:https://github.com/vinitshahdeo/Map-of-India

开源协议:MIT License

下载






Map of India












@vinitshahdeo
&style=flat&color=yellow&logo=github" />

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

Quick Start :rocket:

Open your terminal and run npm start

Setup :gear:

  1. npm install && npm start

Commands :fire:

  • npm run draw: Prints Map of India :india: in the terminal

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

Explained :building_construction:

  1. 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.

  1. cd republic\ day
  2. node index.js
  1. .--,_
  2. [' '\.
  3. \ `''|
  4. | ,]
  5. `._ ].
  6. | \
  7. _/ -'\
  8. ,' ,'
  9. _/' \ ,..-''L_
  10. |--'' '-;__ |\ / .,'
  11. \ `--.__,'_ '---- ,-'
  12. `\ \`-'\__ ,|
  13. ,--;/ / .| ,/
  14. \__ '| / /
  15. ./ _-, _| S@yaN
  16. \__/ / ,/ "
  17. | _/
  18. | ,/
  19. \ /
  20. | /.-'
  21. \ _/ :
  22. | / .
  23. | | .
  24. . | | '.
  25. ; \ / ;\
  26. ' | |
  27. \ _| :
  28. \_,/ "'
  29. : '
  30. '
  31. _ _
  32. | | | | __ _ _ __ _ __ _ _
  33. | |_| |/ _` | '_ \| '_ \| | | |
  34. | _ | (_| | |_) | |_) | |_| |
  35. |_|_|_|\__,_| .__/| .__/ \__, | _
  36. |_ _|_ __ |_| | |_| _ _|___/__ _ __ __| | ___ _ __ ___ ___
  37. | || '_ \ / _` |/ _ \ '_ \ / _ \ '_ \ / _` |/ _ \ '_ \ / __/ _ \
  38. | || | | | (_| | __/ |_) | __/ | | | (_| | __/ | | | (_| __/
  39. |___|_| |_|\__,_|\___| .__/ \___|_| |_|\__,_|\___|_| |_|\___\___|
  40. | _ \ __ _ _ _ |_|
  41. | | | |/ _` | | | |
  42. | |_| | (_| | |_| |
  43. |____/ \__,_|\__, |
  44. |___/

Dependencies :tada:

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

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

Support :heart:

Acknowledgement :hugs:

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

  • This repository is inspired from a StackOverflow thread.

Author :trophy:

Vinit Shahdeo

Follow on Twitter @Vinit_Shahdeo


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