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

iconosaur

v0.0.2

Published

An icon & image generation tool for app developers.

Downloads

8

Readme

iconosaur

iconosaur instantly generates all platform-specific app icons & tiles from a single high-resolution input.

iconosaur takes in a single input image and a configuration file, and generates a number of common iOS, Android, and web images: App icons, social graph images, thumbnails, tiles, etc.

You can embed Iconosaur as part of your project's build workflow step as a pre-build step, or run as an individual tool.

See Supported Outputs for a list of available output types.

iconosaur-cli icon.svg images

Supports

  • PNG or SVG Input Files
  • Configurable output settings
    • Default output: All common Web, iOS, and Android icon sizes
    • Customizable outputs from a JSON config
  • Automatic resizing & "best fit"
  • Background color and alpha support

Installation

Iconosaur requires Node.JS v19 or above.

To install globally:

npm install -g iconosaur

or

npx iconosaur

To install in your project:

npm install --dev iconosaur

Usage

As a CLI:

iconosaur ./input.png --output ./dist/icons

As a pre-build step in your Javascript application:

Update your package.json to run iconosaur as a prebuild script.

{
    ...
    "prebuild": "iconosaur-cli <input> <output>",
}

For example, to take ./src/assets/img/icon.png and produce icons in public/icons/generated:

iconosaur ./src/assets/img/icon.png ./public/icons/generated

To load these icons into your HTML, add these lines to your header:

<link rel="apple-touch-icon" sizes="180x180" href="/icons/generated/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/icons/generated/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/icons/generated/favicon-16x16.png">
<link rel="manifest" href="/icons/generated/site.webmanifest">
<link rel="mask-icon" href="/icons/generated/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">

To use a custom config:

iconosaur ./src/assets/img/icon.png ./public/icons/generated --config ./iconosaur-config.json

Configuration API

Inputs

Outputs

License

MIT