New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

oenyi

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oenyi - npm Package Compare versions

Comparing version 0.0.1 to 0.0.3

6

package.json
{
"name": "oenyi",
"description": "A wrapper for gm and other image processing commands that provides a chainable API with async pipeline of commands.",
"version": "0.0.1",
"version": "0.0.3",
"keywords": [

@@ -37,5 +37,7 @@ "image",

"gm": "^1.18.1",
"nimble": "0.0.2",
"nimble": "0.0.2"
},
"devDependencies": {
"tape": "^4.2.0"
}
}

@@ -12,3 +12,3 @@ # Oenyi

```
```js
var oenyi = require('oenyi');

@@ -21,3 +21,3 @@ var image = oenyi('/path/to/image');

```
```js
image.toJPG();

@@ -29,3 +29,3 @@ ```

```
```js
image.compress({quality: 90});

@@ -39,3 +39,3 @@ ```

```
```js
image.resize({width: 500, height: 255, method: 'contain'});

@@ -48,4 +48,3 @@ ```

```
```js
image.resize({width: 500, height: 500, method: 'cover'});

@@ -56,13 +55,12 @@ ```

```js
image.exec(function(err, imageBuffer) {
// Your code here.
});
```
image.exec(function(err, imageBuffer) {
// Your code here.
});
```
### Execute all commands and pipe to a WritableStream;
```
```js
var wstream = require('fs').createWriteStream('/path/to/destiny');
image.pipe(wstream);

@@ -75,5 +73,5 @@ ```

```
```js
var oenyi = require('oenyi');
var fs = require('fs);
var fs = require('fs');

@@ -85,6 +83,6 @@ oenyi('/path/to/image')

.exec(function(err, imageBuffer) {
if (err) return console.error(err);
if (err) return console.error(err);
fs.writeFile('/path/to/destiny', imageBuffer)
fs.writeFile('/path/to/destiny', imageBuffer);
});
```
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