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 🙏

© 2025 – Pkg Stats / Ryan Hefner

cordova-assets

v1.0.2

Published

Generate all Cordova/Phonegap icons, splashscreens for given platforms

Readme

cordova-assets

NPM package to generate assets, like icons and/or splashscreens, for Phonegap/Cordova applications based on a master file.

###Installation

Requires ImageMagick and its tools to be installed. They can be found here: http://www.imagemagick.org/script/binary-releases.php

sudo npm install -g cordova-assets

###Usage

**Currently only icons are supported.

Make sure that your input image for the icons is square in terms of dimensions. This makes it easier to scale. In addition, the input image should be bigger (ex: 500x500px) than any of the icon sizes since scaling down is generally better than scaling up. However, since you have fewer pixels to work with, it's inevitable that some of your detail is going to be lost. However, I'll will try and add sharpening to the images to try and minimize the loss.

Because of the awesome work of Ryan Parman (https://github.com/skyzyx/svg2png-cli) and Domenic Denicola (https://github.com/domenic/svg2png), whose code I have borrowed (OK, actually stolen), support for converting svg to png has been added.

options:
	-o         - Output directory. Default is current directory.
    -p         - comma delimited (no spaces) platforms to generate assets for.
                Current valid platforms are: ios android bb10 wp8 ff amazon.
                Default is all.
    -t         - Type of input image. Specify if file extension is not used for input image. Supported types are svg and png.
    			Default is png.                

###Examples cga -p ios icon.png

  • will generate all the icons for iOS using icon.png as the master file under a directory ./cga/ios/icons

cga -t svg icon

  • will generate all the icons for every supported platform using the svg input file icon as the master file

###TO-DO

  • Add support for generating splashscreens
  • Add support for sharpening, changing DPI, ...
  • Optimize and clean up code