New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

handy-image-processor

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

handy-image-processor

A handy Image Processor

latest
Source
npmnpm
Version
1.0.6
Version published
Maintainers
1
Created
Source

Handy-Image-Processor

A handy, simple & useful Image Processor for NodeJS with very simple API.

Requirements

  • gm

Install

First install.

# with npm
npm install handy-image-processor

# or with Yarn
yarn add handy-image-processor

Usage

// Import
const Processor = require('handy-image-processor')

// For processing
Processor.ProcessImage(options:Object):Promise
options = {
    srcFile,    // Image source      [eg. './src/image.gif']
    width,      // width you want    [eg. 100]
    height,     // height you want   [eg. 100]
    destFile:   // Image destination [eg. './dest/'+ new Date().getTime() +'.png']
}

// For deleting all the files of any given folder
Processor.DeleteFolder(folder:String):Promise

Keywords

takkar

FAQs

Package last updated on 23 Apr 2018

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