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

aspectify

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aspectify - npm Package Compare versions

Comparing version 0.0.1 to 1.1.1

lib/aspectify.d.ts

54

package.json
{
"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/)
index.js

Sorry, the diff of this file is not supported yet

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