Socket
Socket
Sign inDemoInstall

dcraw-vendored-darwin

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 9.28.0 to 9.28.1

4

package.json
{
"name": "dcraw-vendored-darwin",
"version": "9.28.0",
"description": "dcraw-vendored",
"version": "9.28.1",
"description": "precompiled ready to use dcraw binaries",
"main": "index.js",

@@ -6,0 +6,0 @@ "scripts": {

@@ -26,3 +26,3 @@ # dcraw vendored

// bonus points: it's a promise now
promisify(execFile)(dcraw, ['-w', '-W'])
promisify(execFile)(dcraw, ['-w', '-W', 'my-image.dng'])
.then(result => {

@@ -35,2 +35,28 @@ console.log(result);

You might also want to get the image returned in standard out rather than written to a file. You can follow these general rules:
```javascript
const dcraw = require('dcraw-vendored-linux');
const { promisify } = require('util');
const { execFile } = require('child_process');
const fs = require('fs');
// -c will write the data to stdout
promisify(execFile)(dcraw, ['-c', 'my-image.dng'], {
// hide the extra window on Windows
windowsHide: true,
// we want the raw data, not a string
encoding: 'buffer',
// 8-bit PPMs are roughly 3x bigger than the original raw file
// so you should set this number fairly high
maxBuffer: 1024 * 1024 * 100
})
.then(result => {
// don't use the sync method... you get the idea though
fs.writeFileSync('./my-image.ppm', result.stdout);
}).catch(err => {
console.error(err);
});
```
## Versions

@@ -40,8 +66,8 @@

All versions are compiled using `NODEPS`, so some functionality may not work. Please look at the original source code for imformation on what functionality dependencies provide. If you'd like to see any dependencies included, please feel free to submit a PR.
All versions are compiled using `NODEPS`, so some functionality may not work. Please look at the original source code for information on what functionality is provided by dependencies. If you'd like to see any dependencies included, please feel free to submit a PR.
## License
The original [`dcraw` code](https://www.cybercom.net/~dcoffin/dcraw/) by Dave Coffin is compiled without modifications. Regardless of modification, these modules are distributed under the GPL version 2 license, because that is what the header in the source code says and I do not want to get in trouble.
The original [`dcraw` code by Dave Coffin](https://www.cybercom.net/~dcoffin/dcraw/) is compiled without modifications. Regardless of modification, these modules are distributed under the GPL version 2 license, because that is what the header in the source code says and I do not want to get in trouble.
To the extent possible under law, I am waiving all copyright and related or neighboring rights to the build scripts and build-related code in this repository.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc