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

idcrop

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

idcrop - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

src/js/idcrop.js

2

package.json
{
"name": "idcrop",
"version": "0.0.4",
"version": "0.0.5",
"description": "Embed for cropping images and returning a base64 of the cropped area.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -15,2 +15,6 @@ # IdCrop

```
npm install idcrop
```
###### Javascript

@@ -21,3 +25,3 @@

const idcrop = require("idcrop");
idcrop.IdCrop.init("toolbarContainer", "displayContainer", "previewContainer");
idcrop.init("toolbarContainer", "displayContainer", "previewContainer");

@@ -31,20 +35,5 @@ ```

```
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>IdCrop</title>
<link rel="stylesheet" type="text/css" href="./dist/css/main.min.css">
</head>
<body>
<div id="displayContainer"></div>
<div id="toolbarContainer"></div>
<div id="previewContainer"></div>
<script type="text/javascript" src="./dist/js/bundle.min.js"></script>
</body>
</html>
<div id="displayContainer"></div>
<div id="toolbarContainer"></div>
<div id="previewContainer"></div>
```

@@ -5,2 +5,3 @@ // Import SCSS files.

// Import JS.
import "./idcrop.js";
import "./main.js";

@@ -1,2 +0,3 @@

const Widget = require("./widget.js");
Widget.Widget.init("toolbarContainer", "displayContainer", "previewContainer");
const idcrop = require("./idcrop.js");
idcrop.init("toolbarContainer", "displayContainer", "previewContainer");
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