SVG-generator

所属分类:图形图象
开发工具:JavaScript
文件大小:0KB
下载次数:0
上传日期:2023-09-01 22:46:46
上 传 者sh-1993
说明:  SVG发生器,,
(SVG-generator,,)

文件列表:
LICENSE (1064, 2023-09-02)
examples/ (0, 2023-09-02)
examples/circle.svg (299, 2023-09-02)
examples/square.svg (311, 2023-09-02)
examples/test.svg (307, 2023-09-02)
examples/triangle.svg (312, 2023-09-02)
generated/ (0, 2023-09-02)
generated/logo.svg (309, 2023-09-02)
index.js (3384, 2023-09-02)
lib/ (0, 2023-09-02)
lib/shapeobj.js (487, 2023-09-02)
lib/shapes.js (1973, 2023-09-02)
lib/shapes.test.js (1440, 2023-09-02)
package-lock.json (147233, 2023-09-02)
package.json (721, 2023-09-02)
walkthrough.webm (73183729, 2023-09-02)

# SVG-Generator License: MIT LicenseLicenseMIT License ## Description This project utilizes javascript and node.js to deliver an app that can generate a simple .svg file. It command line accepts user input to generate text on the image, as well as simple shapes and colors. Several examples of generated logos can be found in `/examples/` ## Installation Required to run: `Node.js` NPM packages: `inquirer v8.2.4` `fs` Dev-dependency packages: `jest` The necessary packages are listed in package.json. with Node installed, simply run `npm install` ## Usage To use the svg generator, clone the repository, navigate to the cloned directory and run `node index.js` You will then be presented with a series of questions. Type in an answer to the prompts to select from the shapes to be generated, the text generated on the shape, and the relative colors. The svg file will then be generated in `/generated/` with the filename you specified in the relevant prompt. If you leave it blank, the default name of `logo.svg` will be generated. Link to project repository: [https://github.com/jrapich/SVG-generator](https://github.com/jrapich/SVG-generator/blob/master/https://github.com/jrapich/SVG-generator) Link to video showcasing the installation and usage of this app: [https://drive.google.com/file/d/1pZENdSJxyuer4dub_3eqcQPrbYg3iGQN/view](https://github.com/jrapich/SVG-generator/blob/master/https://drive.google.com/file/d/1pZENdSJxyuer4dub_3eqcQPrbYg3iGQN/view) ## Tests a simple test is written for jest in `/lib/shapes.test.js` first install jest with `npm install --only=dev ` simple test can be run by running `npm test` jest will test the shape classes against themselves. ## Credits no other contributors ## Contributing How to contribute: Please reach out to me at jeremysr@protonmail.com or make a pull request at [https://github.com/jrapich/SVG-generator](https://github.com/jrapich/SVG-generator/blob/master/https://github.com/jrapich/SVG-generator) ## Questions? Any further questions, comments, or bug reports, can be sent to me at jeremysr@protonmail.com https://www.github.com/jrapich ## License This project protected under MIT License. All rights reserved. See /LICENSE for more information.

近期下载者

相关文件


收藏者