🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

annotate-icon

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

annotate-icon

Annotate your icons.

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

annotate-icon

Add annotation to icons.

Install

$ npm install --save annotate-icon

Quickstart

var annotate = require('annotate-icon');
var path = require('path');

annotate({ 
    input: path.join(__dirname, "icon-small.jpg"),
    output: path.join(__dirname, "icon-small.output.png"),
    background: "rgba(0, 255, 0, 0.65);",
    foreground: "#ffffff",
    text: { top: "EXAMPLE", bottom: "example" } 
}, function(err,infos) {
    console.log(err)
    console.log(infos)
});

Before

After

MIT © Aloïs Deniel

Keywords

icon

FAQs

Package last updated on 28 Apr 2017

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