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 🙏

© 2026 – Pkg Stats / Ryan Hefner

make-9patched-splash-ionic

v0.0.7

Published

make 9patched splashscreens in ionic project

Readme

make-9patched-splash-ionic

This is a node module that do resize & 9-patch ionic project's splash.png automatically like this.

FourSide1px9patch.png

Dependencies

junkoro/four-sides-1px-9patcher - https://github.com/junkoro/four-sides-1px-9patcher

and this depends on node-canvas.

Automattic/node-canvas - https://github.com/Automattic/node-canvas

Installing node-canvas is bit difficult. Here is how to on mac.

$ brew install pkg-config
$ brew install pixman
$ brew install cairo
$ export PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig

Installation

$ npm install make-9patched-splash-ionic
$ cp node_modules/make-9patched-splash-ionic/make-9patched-splash-ionic.js .

Usage

$ node make-9patched-splash-ionic.js

!!!! DANGER !!!!

This script will delete all PNG files under resources/android/splash, so watch out!

and we need to edit the config.xml like this.(add '.9' extension for each PNG)

UPDATE 2015.05.06: Now the script edit config.xml automatically. So no more needs to do this!

UPDATE 2015.05.14: Duplicate .9 problem fixed.

・・・
<splash src="resources/android/splash/drawable-land-ldpi-screen.9.png" density="land-ldpi"/>
<splash src="resources/android/splash/drawable-land-mdpi-screen.9.png" density="land-mdpi"/>
<splash src="resources/android/splash/drawable-land-hdpi-screen.9.png" density="land-hdpi"/>
<splash src="resources/android/splash/drawable-land-xhdpi-screen.9.png" density="land-xhdpi"/>
<splash src="resources/android/splash/drawable-land-xxhdpi-screen.9.png" density="land-xxhdpi"/>
<splash src="resources/android/splash/drawable-land-xxxhdpi-screen.9.png" density="land-xxxhdpi"/>
<splash src="resources/android/splash/drawable-port-ldpi-screen.9.png" density="port-ldpi"/>
<splash src="resources/android/splash/drawable-port-mdpi-screen.9.png" density="port-mdpi"/>
<splash src="resources/android/splash/drawable-port-hdpi-screen.9.png" density="port-hdpi"/>
<splash src="resources/android/splash/drawable-port-xhdpi-screen.9.png" density="port-xhdpi"/>
<splash src="resources/android/splash/drawable-port-xxhdpi-screen.9.png" density="port-xxhdpi"/>
<splash src="resources/android/splash/drawable-port-xxxhdpi-screen.9.png" density="port-xxxhdpi"/>
・・・

"processDebugResources" issue

If you use "ionic resources" after using make-9patched, you may get "processDebugResources" error when building.

This is because "ionic resources" create un-9patched resources under the following folder.

platforms/android/build/intermediates/res/debug

If you got this error, just delete the folder and rebuild.

The version 0.0.6 will do this, so just re-run make-9patched.

License

WTFPL - http://www.wtfpl.net/