Skip to content

Commit

Permalink
chore: update pkg name
Browse files Browse the repository at this point in the history
  • Loading branch information
hunghg255 committed Dec 19, 2023
1 parent 8bb9c64 commit 90d20d6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
# Convert svg to css

[![npm version](https://badge.fury.io/js/svgtocss.svg)](https://badge.fury.io/js/svgtocss) [![npm](https://img.shields.io/npm/dw/svgtocss.svg?logo=npm)](https://www.npmjs.com/package/svgtocss) [![npm](https://img.shields.io/bundlephobia/minzip/svgtocss)](https://www.npmjs.com/package/svgtocss)
[![npm version](https://badge.fury.io/js/csvgtocss.svg)](https://badge.fury.io/js/csvgtocss) [![npm](https://img.shields.io/npm/dw/csvgtocss.svg?logo=npm)](https://www.npmjs.com/package/csvgtocss) [![npm](https://img.shields.io/bundlephobia/minzip/csvgtocss)](https://www.npmjs.com/package/csvgtocss)
[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors-)

## Demo

[Github](https://github.com/hunghg255/svgtocss)
[Github](https://github.com/hunghg255/csvgtocss)

[Demo](https://svg-to-css.surge.sh)

## Install

```bash
npm i svgtocss@latest --save-dev
npm i csvgtocss@latest --save-dev
```

## Setup

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

```js
import { defineConfig } from 'svgtocss';
import { defineConfig } from 'csvgtocss';

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

Expand All @@ -40,15 +40,15 @@ export default defineConfig({
...
"scripts": {
...
"svgtocss": "svgtocss",
"csvgtocss": "csvgtocss",
},
...
}
```

### Custom config file

- You can also use a custom config file instead of `svgtocss.config.{ts,js,mjs}`. Just create `<FILE_NAME>.config.{ts,js,mjs}` to build command
- 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

```js
Exp: awesome.config.ts;
Expand All @@ -59,7 +59,7 @@ Exp: awesome.config.ts;
...
"scripts": {
...
"svgtocss": "svgtocss -c awesome",
"csvgtocss": "csvgtocss -c awesome",
},
...
}
Expand Down
File renamed without changes.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "svgtocss",
"name": "csvgtocss",
"version": "0.0.1",
"description": "Convert svg to css",
"source": "src/index.ts",
Expand Down Expand Up @@ -36,19 +36,19 @@
"typescript": "^4.8.4"
},
"bin": {
"svgtocss": "./bin/svgtocss.mjs"
"csvgtocss": "./bin/csvgtocss.mjs"
},
"files": [
"bin",
"dist"
],
"homepage": "https://github.com/hunghg255/svgtocss",
"homepage": "https://github.com/hunghg255/csvgtocss",
"repository": {
"type": "git",
"url": "https://github.com/hunghg255/svgtocss"
"url": "https://github.com/hunghg255/csvgtocss"
},
"bugs": {
"url": "https://github.com/hunghg255/svgtocss/issues"
"url": "https://github.com/hunghg255/csvgtocss/issues"
},
"dependencies": {
"@iconify/tools": "^3.0.7",
Expand Down

0 comments on commit 90d20d6

Please sign in to comment.