Skip to content

Commit 5517495

Browse files
Upgrade [email protected] and add support for rounded corners
1 parent 809f0be commit 5517495

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

cli.js

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ const cli = meow(`
1414
--platform, -p Platform to generate icons for
1515
--background, -b Color of the icon background if the icon is transparant [Default: white]
1616
--contentRatio, -r Logo-icon ratio [Default: 1]
17+
--roundedCorners Generate icons with rounded corners [Default: true for pwa and Android]
18+
--borderRadius Border radius percentage [Default: 0.0909]
1719
--out, -o Output directory [Default: cwd]
1820
1921
Examples

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"dependencies": {
3939
"log-symbols": "^3.0.0",
4040
"meow": "^5.0.0",
41-
"mobicon": "^2.0.0",
41+
"mobicon": "^3.0.0",
4242
"update-notifier": "^3.0.1"
4343
},
4444
"devDependencies": {

readme.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,17 @@ $ mobicon --help
2121
$ mobicon <file>
2222
2323
Options
24-
-p, --platform Platform to generate icons for
25-
-b, --background Color of the icon background if the icon is transparant [Default: white]
26-
-r, --contentRatio Logo-icon ratio [Default: 1]
27-
-o, --out Output directory [Default: cwd]
24+
--platform, -p Platform to generate icons for
25+
--background, -b Color of the icon background if the icon is transparant [Default: white]
26+
--contentRatio, -r Logo-icon ratio [Default: 1]
27+
--roundedCorners Generate icons with rounded corners [Default: true for pwa and Android]
28+
--borderRadius Border radius percentage [Default: 0.0909]
29+
--out, -o Output directory [Default: cwd]
2830
2931
Examples
3032
$ mobicon icon.png -p=android
3133
✔ success
32-
$ mobicon icon.png -p=android -p=ios
34+
$ mobicon icon.png -p=android -p=ios -p=pwa
3335
✔ success
3436
$ mobicon icon.svg -p=ios -o=resources
3537
✔ success

0 commit comments

Comments
 (0)