Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

check-images

Package Overview
Dependencies
Maintainers
5
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

check-images

Check whether the height of the picture is in line with the specification

  • 1.0.3
  • latest
  • npm
  • Socket score

Version published
Maintainers
5
Created
Source

check-images

简单的切图自动化工具,用来检测sprite中的图片是否符合规范(高度必须为偶数),防止合成单倍精灵图时position出错, 如遇到不符合规范的图片,则会自动拉伸1像素

Installation

$ npm install check-images

API

var checkImg = require('check-images');
// 你需要检测的图片所在文件夹(里面还可以包含子文件夹)
var filePath = './sprite/tool/src';


checkImg(filePath);

Keywords

FAQs

Package last updated on 11 Feb 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc