When creating a website or application, you may need a logo to represent your project or webpage. This Node.js command-line application will take in user input to generate a logo and save it as an SVG file. The application prompts the user to select a color and shape, provide text for the logo, and save the generated SVG to a .svg
file.
Click the following link to view a walktrhough video on the usage of the application: SVG Logo Generator Video
- Clone this repository to your local machine. (For reference, visit the Cloning a Repository GitHub Docs article.)
- Run
npm install
in your CLI to download the npm package dependencies. - Run
node index.js
on your CLI to run the application.
When the program is initialized, you will be prompted to answer a series of questions about the logo you want. This includes the text, text color, shape, and shape color.
Once all the questions have been answered, fs.writeFile()
is used to generate an svg file based on your answers. The generated file will be written to the relative examples/
directory.
To make contributions to this project:
- Fork the repository
- Make some commits to improve the application
- Open a Pull Request on GitHub
- From there, we can discuss your changes and merge the pull request once your contributions have been approved!
I've written some test scripts for this project, which can be found in the test/
directory.
Before you run the test suites, ensure that you have downloaded the project package dependencies in the Installation section.
When you're ready to run the tests, go to your CLI and run npm test
.
This GitHub repository is licensed under the MIT license. Please refer to the license documentation here.
This project was created by dymoy.
For any related questions, please contact me via email at [email protected].