Skip to content

Commit

Permalink
Upgrade [email protected] and add support for rounded corners
Browse files Browse the repository at this point in the history
  • Loading branch information
SamVerschueren committed Sep 6, 2019
1 parent 809f0be commit 5517495
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 2 additions & 0 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ const cli = meow(`
--platform, -p Platform to generate icons for
--background, -b Color of the icon background if the icon is transparant [Default: white]
--contentRatio, -r Logo-icon ratio [Default: 1]
--roundedCorners Generate icons with rounded corners [Default: true for pwa and Android]
--borderRadius Border radius percentage [Default: 0.0909]
--out, -o Output directory [Default: cwd]
Examples
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"dependencies": {
"log-symbols": "^3.0.0",
"meow": "^5.0.0",
"mobicon": "^2.0.0",
"mobicon": "^3.0.0",
"update-notifier": "^3.0.1"
},
"devDependencies": {
Expand Down
12 changes: 7 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,17 @@ $ mobicon --help
$ mobicon <file>
Options
-p, --platform Platform to generate icons for
-b, --background Color of the icon background if the icon is transparant [Default: white]
-r, --contentRatio Logo-icon ratio [Default: 1]
-o, --out Output directory [Default: cwd]
--platform, -p Platform to generate icons for
--background, -b Color of the icon background if the icon is transparant [Default: white]
--contentRatio, -r Logo-icon ratio [Default: 1]
--roundedCorners Generate icons with rounded corners [Default: true for pwa and Android]
--borderRadius Border radius percentage [Default: 0.0909]
--out, -o Output directory [Default: cwd]
Examples
$ mobicon icon.png -p=android
✔ success
$ mobicon icon.png -p=android -p=ios
$ mobicon icon.png -p=android -p=ios -p=pwa
✔ success
$ mobicon icon.svg -p=ios -o=resources
✔ success
Expand Down

0 comments on commit 5517495

Please sign in to comment.