Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "idcrop", | ||
"version": "1.0.1", | ||
"description": "Embed for cropping images and returning a base64 of the cropped area.", | ||
"main": "index.js", | ||
"version": "1.0.2", | ||
"description": | ||
"Embed for cropping images and returning a base64 of the cropped area.", | ||
"main": "dist/js/bundle.min.js", | ||
"files": ["dist"], | ||
"scripts": { | ||
@@ -11,12 +13,7 @@ "build": "webpack --progress -p -d", | ||
}, | ||
"repository" : { | ||
"type" : "git", | ||
"url" : "https://github.com/idwall/idcrop.git" | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/idwall/idcrop.git" | ||
}, | ||
"keywords": [ | ||
"idwall", | ||
"crop", | ||
"image", | ||
"upload" | ||
], | ||
"keywords": ["idwall", "crop", "image", "upload"], | ||
"author": "Beatriz Rizental", | ||
@@ -36,2 +33,2 @@ "license": "MIT", | ||
} | ||
} | ||
} |
@@ -7,21 +7,18 @@ # IdCrop | ||
```bash | ||
$ npm install & npm start | ||
``` | ||
npm install | ||
npm run server | ||
``` | ||
### Usage | ||
```bash | ||
$ npm install idcrop | ||
``` | ||
npm install idcrop | ||
``` | ||
###### Javascript | ||
``` | ||
```js | ||
const idcrop = require('idcrop') | ||
const idcrop = require("idcrop"); | ||
idcrop.init("toolbarContainer", "displayContainer", "previewContainer"); | ||
idcrop.init('toolbarContainer', 'displayContainer', 'previewContainer') | ||
``` | ||
@@ -31,19 +28,22 @@ | ||
You must create a container for display (cropping area), toolbar (for now, only filename) and preview (cropped area preview). | ||
You must create a container for display (cropping area), toolbar (for now, only | ||
filename) and preview (cropped area preview). | ||
``` | ||
```html | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>IdCrop</title> | ||
<link rel="stylesheet" type="text/css" href="./node_modules/idcrop/dist/css/main.min.css"> | ||
</head> | ||
<body> | ||
<div id="displayContainer"></div> | ||
<div id="toolbarContainer"></div> | ||
<div id="previewContainer"></div> | ||
<script type="text/javascript" src="./path/to/js/file.js"></script> | ||
</body> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>IdCrop</title> | ||
<link rel="stylesheet" type="text/css href="https://unpkg.com/idcrop@1.0.1/dist/css/main.min.css"> | ||
</head> | ||
<body> | ||
<div id="displayContainer"></div> | ||
<div id="toolbarContainer"></div> | ||
<div id="previewContainer"></div> | ||
<script type="text/javascript" src="./path/to/js/file.js"></script> | ||
</body> | ||
</html> | ||
``` | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48
54019
4
186
1