cropperjs
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

Cropper.js

JavaScript image cropper.

Main npm package files

dist/
├── cropper.js         (UMD, bundled)
├── cropper.min.js     (UMD, bundled, compressed)
├── cropper.raw.js     (UMD, unbundled, default)
├── cropper.esm.js     (ECMAScript Module, bundled)
├── cropper.esm.min.js (ECMAScript Module, bundled, compressed)
├── cropper.esm.raw.js (ECMAScript Module, unbundled)
└── cropper.d.ts       (TypeScript Declaration File)

Getting started

Installation

npm install cropperjs

Usage

import Cropper from 'cropperjs';

const image = new Image();

image.src = '/path/to/image.jpg';

const cropper = new Cropper(image);

Versioning

Maintained under the Semantic Versioning guidelines.

License

MIT

Package Sidebar

Install

npm i cropperjs

Weekly Downloads

735,126

Version

2.0.0

License

MIT

Unpacked Size

428 kB

Total Files

10

Last publish

Collaborators

  • chenfengyuan