6 Commits

Author SHA1 Message Date
dependabot[bot]
d3b5c1acf6 Bump y18n from 4.0.0 to 4.0.1
Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-30 09:07:30 +00:00
Konstantin Vulsonov
dbf0994650 readme fix 2018-09-21 01:58:04 +03:00
Konstantin Vulsonov
b9745233ab Update type definition for TS 2018-09-21 01:57:07 +03:00
Konstantin Vulsonov
225e6dea60 add ts typedef 2018-09-21 01:57:02 +03:00
Konstantin Vulsonov
5bc85cfee3 Update README.md 2018-09-20 01:27:07 +03:00
Konstantin Vulsonov
1374a3a65a Update README.md 2018-09-20 01:07:37 +03:00
3 changed files with 13 additions and 8 deletions

View File

@@ -24,7 +24,7 @@ svg-iconset --source=assets/images/icons --result=icons
```
Creates a file `icons-iconset.svg` in same folder
### In Project
```
```javascript
const SvgIconset = require('svg-iconset');
const config = {
@@ -32,9 +32,13 @@ const config = {
result: 'icons', // Required
// This is optional for optimize files using SVGO plugins
optimize: {
removeViewBox: true, // Will remove attribute viewBox (default true)
removeViewBox: true, // Will remove attribute viewBox
}
}
new SvgIconset(config).createSet();
```
#### Additional
[Default SVGO optimisation config](https://github.com/DariusNorv/svg-iconset/wiki#default-svgo-configuration)

10
package-lock.json generated
View File

@@ -1,6 +1,6 @@
{
"name": "@vkl/svg-iconset-builder",
"version": "1.0.0",
"version": "1.0.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
@@ -42,7 +42,7 @@
"dependencies": {
"chalk": {
"version": "1.1.3",
"resolved": "http://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
"integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=",
"dev": true,
"requires": {
@@ -944,9 +944,9 @@
"integrity": "sha512-PHyM+sQouu7xspQQwELlGwwd05mXUFqwFYfqPO0cC7x4fxyHnnuetmQr6CjJiafIDoH4MogHb9dOoJzR/Y4rFg=="
},
"y18n": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz",
"integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w=="
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.1.tgz",
"integrity": "sha512-wNcy4NvjMYL8gogWWYAO7ZFWFfHcbdbE57tZO8e4cbpj8tfUcwrwqSl3ad8HxpYWCdXcJUCeKKZS62Av1affwQ=="
},
"yargs": {
"version": "12.0.2",

View File

@@ -1,8 +1,9 @@
{
"name": "@vkl/svg-iconset-builder",
"version": "1.0.0",
"version": "1.0.1",
"description": "create iconset from separated svg icons",
"main": "./dist/app.js",
"types": "./dist/app.d.ts",
"scripts": {
"build": "tsc",
"prepare": "npm run build",