Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dudadev/duda-svg

Package Overview
Dependencies
Maintainers
10
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dudadev/duda-svg

SVG Generator and Loader

  • 1.4.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
10
Created
Source

duda-svg

Install

npm install @dudadev/duda-svg

Development

  1. Getting started:
$ git clone https://github.com/dudadev/duda-svg
$ npm install
  1. See all existing SVGs:
$ npm start

Or checkout Storybook.

Add a new SVG

  1. Create a new file in the appropriate folder:
// For editor:
$ touch src/editor/svgs/my-new-svg.svg

// For runtime:
$ touch src/runtime/svgs/my-new-svg.svg
  1. Copy the SVG content into the new file, follow the guidelines here

  2. Generate the new SVG Sprite and check out the result:

$ npm run generate
  1. Publish the changes:
$ npm run publish-svg
  1. Commit and push all generated files:
$ git add .
$ git commit -m "feat: add my-svg"
$ git push
  1. Update the version number in your repository.

FAQs

Package last updated on 07 Jan 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc