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

nothing-cdn

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nothing-cdn

图片自动剪裁

latest
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

根据图片host判断剪裁属性

var cdn = require('nothing-cdn');

cdn.config.bit = 'rem';

var url = 'http://img.alicdn.com/imgextra/i3/18008920/TB2kuYtfWagSKJjy0FcXXcZeVXa_!!18008920.jpg'

var res = cdn(url, {
    width: 2.3,
    height: 2.3
})

FAQs

Package last updated on 08 Dec 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