Dynamic app icon generator for iOS, Android
npm install --save icon-toolkit
IconToolkit API is Promise based
import IconToolkit from 'icon-toolkit'
IconToolkit.generateIcons({
source: '/Users/userX/sourceImage.png'),
destinationFolder: '/Users/userX/exportIcons')
}).then(() => console.log('SUCCESS!'))
import IconToolkit from 'icon-toolkit'
IconToolkit.generateIcons({
source: '/Users/userX/sourceImage.png'),
ios: {
destinationFolder: '/Users/userX/myIosIcons')
},
android: {
destinationFolder: '/Users/userX/myAndroidIcons')
}
}).then(() => console.log('SUCCESS!'))
import IconToolkit from 'icon-toolkit'
IconToolkit.generateIcons({
ios: {
source: '/Users/userX/iOSImage.png'),
destinationFolder: '/Users/userX/myIosIcons')
},
android: {
source: '/Users/userX/androidImage.png'),
destinationFolder: '/Users/userX/myAndroidIcons')
}
}).then(() => console.log('SUCCESS!'))
iOS | Android |
---|---|
Basicaly clone, change, test, push and pull request.
icon-toolkit is licensed under the MIT license.