New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

icon-splash-generator

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

icon-splash-generator

This tool will crop and resize PNG source images into appropriate sizes for modern iOS and Android devices.

latest
npmnpm
Version
1.2.2
Version published
Maintainers
1
Created
Source

Resource Generator

This tool will crop and resize PNG source images to generate images for modern iOS and Android devices.

icon-splash-generator must run at the root of a standard Cordova project setup, such as:

resources/
├── icon.png
└── splash.png
  • resources/icon.png must be at least 1024×1024px
  • resources/splash.png must be at least 2732×2732px

Install

$ npm install icon-splash-generator

CommonJS Example

const run = require('icon-splash-generator');

await run();

TypeScript Example

run() takes an options object described by the interface Options. If options are provided, resources are generated in an explicit, opt-in manner. In the following example, only Android icons and iOS splash screens are generated.

import { Options, run } from 'icon-splash-generator';

const options: Options = {
  directory: '/path/to/project',
  resourcesDirectory: 'resources',
  platforms: {
    android: { icon: { sources: ['resources/icon.png'] } },
    ios: { splash: { sources: ['resources/splash.png'] } },
  },
};

await run(options);

Keywords

ionic

FAQs

Package last updated on 05 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts