🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

csvgtocss

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

csvgtocss

Convert svg to css

Source
npmnpm
Version
0.0.6
Version published
Weekly downloads
37
2.78%
Maintainers
1
Weekly downloads
 
Created
Source

Convert svg to css

npm version npm npm All Contributors

Demo

Github

Demo

Install

npm i csvgtocss@latest --save-dev

Setup

Create file: csvgtocss.config.{ts,js,mjs}

import { defineConfig } from 'csvgtocss';

export default defineConfig({
  src: 'svg', // svg path
  dist: 'dist', // output path
  prefix: 'csvgtocss', // font name
});

CLI (file package.json)

-c: Config
{
  ...
  "scripts": {
    ...
    "csvgtocss": "csvgtocss",
  },
  ...
}

Custom config file

  • You can also use a custom config file instead of csvgtocss.config.{ts,js,mjs}. Just create <FILE_NAME>.config.{ts,js,mjs} to build command
Exp: awesome.config.ts;
{
  ...
  "scripts": {
    ...
    "csvgtocss": "csvgtocss -c awesome",
  },
  ...
}

About

Buy Me A Coffee

Gia Hung – hung.hg

Keywords

svg

FAQs

Package last updated on 20 Dec 2023

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