Comparing version 0.0.1 to 1.1.1
{ | ||
"name": "aspectify", | ||
"version": "0.0.1", | ||
"description": "test", | ||
"main": "index.js", | ||
"version": "1.1.1", | ||
"description": "Converts one or more images to a given aspect ratio by cropping", | ||
"main": "lib/aspectify.js", | ||
"typings": "./lib/aspectify.d.ts", | ||
"bin": { | ||
"aspectify": "./lib/aspectify.js" | ||
}, | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"dev": "tsc --watch", | ||
"prebuild": "rimraf lib", | ||
"build": "tsc", | ||
"prepublishOnly": "npm run build" | ||
}, | ||
"files": [ | ||
"lib" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/bigamasta/aspectify.git" | ||
"url": "git+ssh://git@github.com/rexxars/aspectify.git" | ||
}, | ||
"author": "Patrik Prevuznak", | ||
"keywords": [ | ||
"aspect-ratio", | ||
"crop", | ||
"resize", | ||
"image", | ||
"cli" | ||
], | ||
"author": "Espen Hovlandsdal <espen@hovlandsdal.com>", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/bigamasta/aspectify/issues" | ||
"url": "https://github.com/rexxars/aspectify/issues" | ||
}, | ||
"homepage": "https://github.com/bigamasta/aspectify#readme" | ||
"homepage": "https://github.com/rexxars/aspectify#readme", | ||
"prettier": { | ||
"semi": false, | ||
"singleQuote": true, | ||
"bracketSpacing": false, | ||
"printWidth": 100, | ||
"trailingComma": "all" | ||
}, | ||
"dependencies": { | ||
"chalk": "^2.4.2", | ||
"meow": "^5.0.0", | ||
"p-queue": "^4.0.0", | ||
"sharp": "^0.22.0" | ||
}, | ||
"devDependencies": { | ||
"@types/meow": "^5.0.0", | ||
"@types/sharp": "^0.22.0", | ||
"prettier": "^1.16.4", | ||
"rimraf": "^2.6.3", | ||
"tslint": "^5.14.0", | ||
"typescript": "^3.3.4000" | ||
} | ||
} |
@@ -1,1 +0,36 @@ | ||
# aspectify | ||
# aspectify | ||
Converts one or more images to a given aspect ratio by cropping. | ||
Requires node.js >= 8. | ||
## Installation | ||
Not yet published to npm. Trying to wrangle my way to the `aspectify` npm module. | ||
## Usage | ||
``` | ||
Usage | ||
$ aspectify <...files> | ||
Options | ||
-a, --aspect Aspect ratio to use (eg: 16:9, 4:3, 1.77) - default is 16:9 | ||
-o, --output Output filename (default: <filename>.<aspect>.<ext>) | ||
-r, --replace Replace the original file | ||
-w, --max-width Max width of the image | ||
-h, --max-height Max height of the image | ||
-c, --concurrency Maximum number of crops to perform simultaneously | ||
-v, --verbose Be verbose about operations performed | ||
Examples | ||
$ aspectify you.jpg | ||
$ aspectify -o target.png source.png | ||
$ aspectify -r replace-me.webp | ||
$ aspectify 1.jpg 2.jpg 3.jpg | ||
$ aspectify -c 3 *.jpg | ||
$ apectify -a 16:10 -r -w 2000 *.jpg | ||
``` | ||
## License | ||
MIT © [Espen Hovlandsdal](https://espen.codes/) |
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
14898
6
172
0
37
4
6
1
2
+ Addedchalk@^2.4.2
+ Addedmeow@^5.0.0
+ Addedp-queue@^4.0.0
+ Addedsharp@^0.22.0
+ Addedansi-regex@2.1.1(transitive)
+ Addedansi-styles@3.2.1(transitive)
+ Addedaproba@1.2.0(transitive)
+ Addedare-we-there-yet@1.1.7(transitive)
+ Addedarray-find-index@1.0.2(transitive)
+ Addedarrify@1.0.1(transitive)
+ Addedbase64-js@1.5.1(transitive)
+ Addedbl@4.1.0(transitive)
+ Addedbuffer@5.7.1(transitive)
+ Addedcamelcase@4.1.0(transitive)
+ Addedcamelcase-keys@4.2.0(transitive)
+ Addedchalk@2.4.2(transitive)
+ Addedchownr@1.1.4(transitive)
+ Addedcode-point-at@1.1.0(transitive)
+ Addedcolor@3.2.1(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addedcolor-string@1.9.1(transitive)
+ Addedconsole-control-strings@1.1.0(transitive)
+ Addedcore-util-is@1.0.3(transitive)
+ Addedcurrently-unhandled@0.4.1(transitive)
+ Addeddecamelize@1.2.0(transitive)
+ Addeddecamelize-keys@1.1.1(transitive)
+ Addeddecompress-response@4.2.1(transitive)
+ Addeddeep-extend@0.6.0(transitive)
+ Addeddelegates@1.0.0(transitive)
+ Addeddetect-libc@1.0.3(transitive)
+ Addedend-of-stream@1.4.4(transitive)
+ Addederror-ex@1.3.2(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedeventemitter3@3.1.2(transitive)
+ Addedexpand-template@2.0.3(transitive)
+ Addedfind-up@2.1.0(transitive)
+ Addedfs-constants@1.0.0(transitive)
+ Addedfs-copy-file-sync@1.1.1(transitive)
+ Addedfs-minipass@1.2.7(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedgauge@2.7.4(transitive)
+ Addedgithub-from-package@0.0.0(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedhas-flag@3.0.0(transitive)
+ Addedhas-unicode@2.0.1(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedhosted-git-info@2.8.9(transitive)
+ Addedieee754@1.2.1(transitive)
+ Addedindent-string@3.2.0(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedini@1.3.8(transitive)
+ Addedis-arrayish@0.2.10.3.2(transitive)
+ Addedis-core-module@2.15.1(transitive)
+ Addedis-fullwidth-code-point@1.0.0(transitive)
+ Addedis-plain-obj@1.1.0(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedjson-parse-better-errors@1.0.2(transitive)
+ Addedload-json-file@4.0.0(transitive)
+ Addedlocate-path@2.0.0(transitive)
+ Addedloud-rejection@1.6.0(transitive)
+ Addedmap-obj@1.0.12.0.0(transitive)
+ Addedmeow@5.0.0(transitive)
+ Addedmimic-response@2.1.0(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedminimist-options@3.0.2(transitive)
+ Addedminipass@2.9.0(transitive)
+ Addedminizlib@1.3.3(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addedmkdirp-classic@0.5.3(transitive)
+ Addednan@2.22.0(transitive)
+ Addednapi-build-utils@1.0.2(transitive)
+ Addednode-abi@2.30.1(transitive)
+ Addednoop-logger@0.1.1(transitive)
+ Addednormalize-package-data@2.5.0(transitive)
+ Addednpmlog@4.1.2(transitive)
+ Addednumber-is-nan@1.0.1(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedp-limit@1.3.0(transitive)
+ Addedp-locate@2.0.0(transitive)
+ Addedp-queue@4.0.0(transitive)
+ Addedp-try@1.0.0(transitive)
+ Addedparse-json@4.0.0(transitive)
+ Addedpath-exists@3.0.0(transitive)
+ Addedpath-parse@1.0.7(transitive)
+ Addedpath-type@3.0.0(transitive)
+ Addedpify@3.0.0(transitive)
+ Addedprebuild-install@5.3.6(transitive)
+ Addedprocess-nextick-args@2.0.1(transitive)
+ Addedpump@3.0.2(transitive)
+ Addedquick-lru@1.1.0(transitive)
+ Addedrc@1.2.8(transitive)
+ Addedread-pkg@3.0.0(transitive)
+ Addedread-pkg-up@3.0.0(transitive)
+ Addedreadable-stream@2.3.83.6.2(transitive)
+ Addedredent@2.0.0(transitive)
+ Addedresolve@1.22.8(transitive)
+ Addedsafe-buffer@5.1.25.2.1(transitive)
+ Addedsemver@5.7.26.3.1(transitive)
+ Addedset-blocking@2.0.0(transitive)
+ Addedsharp@0.22.1(transitive)
+ Addedsignal-exit@3.0.7(transitive)
+ Addedsimple-concat@1.0.1(transitive)
+ Addedsimple-get@3.1.1(transitive)
+ Addedsimple-swizzle@0.2.2(transitive)
+ Addedspdx-correct@3.2.0(transitive)
+ Addedspdx-exceptions@2.5.0(transitive)
+ Addedspdx-expression-parse@3.0.1(transitive)
+ Addedspdx-license-ids@3.0.20(transitive)
+ Addedstring-width@1.0.2(transitive)
+ Addedstring_decoder@1.1.1(transitive)
+ Addedstrip-ansi@3.0.1(transitive)
+ Addedstrip-bom@3.0.0(transitive)
+ Addedstrip-indent@2.0.0(transitive)
+ Addedstrip-json-comments@2.0.1(transitive)
+ Addedsupports-color@5.5.0(transitive)
+ Addedsupports-preserve-symlinks-flag@1.0.0(transitive)
+ Addedtar@4.4.19(transitive)
+ Addedtar-fs@2.1.1(transitive)
+ Addedtar-stream@2.2.0(transitive)
+ Addedtrim-newlines@2.0.0(transitive)
+ Addedtunnel-agent@0.6.0(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addedvalidate-npm-package-license@3.0.4(transitive)
+ Addedwhich-pm-runs@1.1.0(transitive)
+ Addedwide-align@1.1.5(transitive)
+ Addedwrappy@1.0.2(transitive)
+ Addedyallist@3.1.1(transitive)
+ Addedyargs-parser@10.1.0(transitive)