Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

image-splitter

deptno22MIT0.0.5TypeScript support: included

install

readme

image-splitter

install

npm install --save image-splitter

api

splitIfWidthBiggerThenHeight: (ext: string, stream: NodeJS.ReadableStream, rightFirst?: boolean) => Promise<NodeJS.ReadableStream[]>;

import {splitIfWidthBiggerThenHeight} from 'image-splitter';

axios({url: 'https://image.url.jpg', responseType: 'stream'})
    .then(response => splitIfWidthBiggerThenHeight('.jpg', response.data));

changelog

(2017-06-10)