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

pam-diff

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pam-diff - npm Package Compare versions

Comparing version 0.12.0 to 0.12.1-napi

binding.gyp

2

index.js

@@ -7,3 +7,3 @@ 'use strict';

const PC = require('./lib/pixel-change');
const PC = require('./build/Release/pixel_change');

@@ -10,0 +10,0 @@ class PamDiff extends Transform {

@@ -115,8 +115,2 @@ 'use strict';

module.exports = PixelChange;
//todo(ne) - should always return array
//todo(ne) - array will only be populated when percent >= percent
//todo(ne) - percent will have to be passed into method
//todo - will have to test this behavior on n-api module first to maintain symmetry
//todo(ne) - check integrity of data before sending here to be processed
module.exports = PixelChange;
{
"name": "pam-diff",
"version": "0.12.0",
"version": "0.12.1-napi",
"description": "Measure differences between pixel arrays extracted from pam images",
"main": "index.js",
"scripts": {
"install": "node-gyp rebuild",
"pretest": "npm install",
"test": "npm run gray && npm run rgb && npm run rgba",

@@ -16,3 +18,4 @@ "preversion": "npm test",

"rgb": "node tests/test_rgb && node tests/test_rgb2 && node tests/test_rgb3 && node tests/test_rgb4",
"rgba": "node tests/test_rgba && node tests/test_rgba2 && node tests/test_rgba3 && node tests/test_rgba4"
"rgba": "node tests/test_rgba && node tests/test_rgba2 && node tests/test_rgba3 && node tests/test_rgba4",
"pub": "npm publish -tag n-api"
},

@@ -40,5 +43,7 @@ "repository": {

"dependencies": {
"node-addon-api": "^1.2.0",
"polygon-points": "^0.5.1"
},
"devDependencies": {
"ffmpeg-static": "^2.1.0",
"jsdoc": "^3.5.5",

@@ -45,0 +50,0 @@ "pipe2pam": "^0.6.2"

# pam-diff
###### [![Build Status](https://travis-ci.org/kevinGodell/pam-diff.svg?branch=master)](https://travis-ci.org/kevinGodell/pam-diff) [![Build status](https://ci.appveyor.com/api/projects/status/hu6qw285sm6vfwtd/branch/master?svg=true)](https://ci.appveyor.com/project/kevinGodell/pam-diff/branch/master) [![GitHub issues](https://img.shields.io/github/issues/kevinGodell/pam-diff.svg)](https://github.com/kevinGodell/pam-diff/issues) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/kevinGodell/pam-diff/master/LICENSE)
Measure differences between pixel arrays extracted from pam images. Works well with node module [pipe2pam](https://www.npmjs.com/package/pipe2pam) to extract pam images from an ffmpeg pipe. Supported ***tupltypes*** are ***rgb***, ***rgb_alpha***, ***grayscale***, and ***blackandwhite***. It is currently being used for a video motion detection project.
###### [![dependencies Status](https://david-dm.org/kevinGodell/pam-diff/n-api/status.svg)](https://david-dm.org/kevinGodell/pam-diff/n-api) [![Build Status](https://travis-ci.org/kevinGodell/pam-diff.svg?branch=n-api)](https://travis-ci.org/kevinGodell/pam-diff) [![Build status](https://ci.appveyor.com/api/projects/status/hu6qw285sm6vfwtd/branch/n-api?svg=true)](https://ci.appveyor.com/project/kevinGodell/pam-diff/branch/n-api) [![GitHub issues](https://img.shields.io/github/issues/kevinGodell/pam-diff.svg)](https://github.com/kevinGodell/pam-diff/issues) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/kevinGodell/pam-diff/n-api/LICENSE)
Measure differences between pixel arrays extracted from pam images. Works well with node module [pipe2pam](https://www.npmjs.com/package/pipe2pam) to extract pam images from an ffmpeg pipe. Supported ***tupltypes*** are ***rgb***, ***rgb_alpha***, and ***grayscale***. It is currently being used for a video motion detection project.
### installation:
```
npm install pam-diff --save
npm install pam-diff@latest --save
```
### installation of experimental n-api version:
```
npm install pam-diff@n-api --save
```
**To run the example below, also install pipe2pam:**

@@ -105,2 +109,4 @@ ```

ffmpeg.stdout.pipe(p2p).pipe(pamDiff);
```
```
See [tests](https://github.com/kevinGodell/pam-diff/tree/n-api/tests) or [examples](https://github.com/kevinGodell/pam-diff/tree/n-api/examples) for more implementations.
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