npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

splashify

v0.3.0

Published

Generate launch screens for your app

Downloads

13

Readme

splashify

npm version

Splashify is a powerful CLI tool designed to simplify the creation of launch screens for any device, ensuring your application makes a great first impression.

hero

Getting Started

Quick Start

You don't need to install Splashify if you're using npx, you can simply run:

npx splashify@latest generate

Basic Usage

Generate launch screens using the default settings with an icon.svg in your current directory:

npx splashify generate

To use a custom icon, specify its path or URL with the --input flag:

npx splashify generate --input path/to/icon.svg

Advanced Usage

Command Structure

splashify generate|gen [devices...] [options]

Arguments

devices: Specify devices by screen dimensions and density. Use the format {width}x{height}@{dpi}. If omitted, default devices are targeted:

| Width x Height @ DPI | Device | | -------------------- | ------------------------------------------------------------------------- | | 430x932@3 | iPhone 15 Pro Max, iPhone 15 Plus, iPhone 14 Pro Max | | 393x852@3 | iPhone 15 Pro, iPhone 15, iPhone 14 Pro | | 428x926@3 | iPhone 14 Plus, iPhone 13 Pro Max, iPhone 12 Pro Max | | 390x844@3 | iPhone 14, iPhone 13 Pro, iPhone 13, iPhone 12 Pro, iPhone 12 | | 360x780@3 | iPhone 13 Mini, iPhone 12 Mini | | 414x896@3 | iPhone 11 Pro Max, iPhone XS Max | | 375x812@3 | iPhone 11 Pro, iPhone XS, iPhone X | | 414x896@2 | iPhone 11, iPhone XR | | 414x736@3 | iPhone 8 Plus, iPhone 7 Plus, iPhone 6s Plus | | 375x667@2 | iPhone SE, iPhone 8, iPhone 7, iPhone 6s, iPhone 6 | | 320x568@2 | iPhone SE 4, iPhone 5s, iPhone 5c, iPhone 5, iPod Touch 5th Gen and later | | 1024x1366@2 | iPad Pro 12.9", iPad Air 9.7", iPad Mini 7.9" | | 834x1194@2 | iPad Pro 11" | | 820x1180@2 | iPad Air 10.9" | | 834x1112@2 | iPad Air 10.5", iPad Pro 10.5" | | 810x1080@2 | iPad 10.2" | | 768x1024@2 | iPad Mini 7.9", iPad Pro 9.7" | | 744x1133@2 | iPad Mini 8.3" |

Customization Options

Background Color

Set a custom background color for your splash screen (default is transparent):

npx splashify generate --background "#5ca19d"

Image Scaling

Adjust the icon size relative to the device width (default is 0.75):

npx splashify generate --scale 0.5

Output Configuration

Generated files are placed in .splashify/images by default. Use the --outdir flag to define a custom output directory:

npx splashify generate --outdir path/to/output

Splashify also creates a resources.html in the .splashify directory, containing <link> tags for the splash screens. You can easily integrate these into your project.

Resources file name and output directory can be customized using the --def-file and --def-outdir flags.

Output Formats

Splashify supports multiple output formats for further integration:

  • --html: Generate an HTML file with <link> tags.
  • --json: Output a JSON file with resource definitions.
  • --ts: Create a TypeScript file.
  • --js: Generate a JavaScript file.
  • --esm: Produce an ES Module file.
  • --cjs: Output a CommonJS file.
  • --no-def: Disable definition files generation.

Combine these flags as needed to suit your project requirements.

Help and Support

For a complete list of commands and options:

npx splashify generate --help

License

Licensed under the MIT license.