Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
face-plusplus-node
Advanced tools
[![npm version](https://badge.fury.io/js/face-plusplus-node.svg (https://badge.fury.io/js/face-plusplus-node)
Face++ /v3 faceplusplus.com API wrapper for Node.js
$ npm install face-plusplus-node
var facepp = require('face-plusplus-node');
facepp.setApiKey('API_KEY');
facepp.setApiSecret('API_SECRET');
facepp.setServer('cn');
var facepp = require('face-plusplus-node');
facepp.setApiKey('API_KEY');
facepp.setApiSecret('API_SECRET');
var parameters = {
image_url: 'http://example.com/image.jpg',
reutn_attributes: 'gender,age,emotion'
};
facepp.post('/detect', parameters, function(err, res) {
console.log(res);
});
var facepp = require('face-plus-plus'),
fs = require('fs');
facepp.setApiKey('API_KEY');
facepp.setApiSecret('API_SECRET');
var parameters = {
return_attributes: 'ethnicity,beauty,eyegaze',
image_base64: fs.readFileSync('./image.jpg').toString('base64')
}
};
facepp.post('/detect', parameters, function(err, res) {
console.log(res);
});
var facepp = require('face-plus-plus'),
fs = require('fs');
facepp.setApiKey('API_KEY');
facepp.setApiSecret('API_SECRET');
var parameters = {
image_base64_1: fs.readFileSync('./image1.jpg').toString('base64'),
image_base64_2: fs.readFileSync('./image2.jpg').toString('base64'),
}
};
facepp.post('/compare', parameters, function(err, res) {
console.log(res);
});
You can see all possible parameters and ways to pass image and also compare two faces you can see Face++ Documentation
FAQs
Face++ v3 API wrapper for Node.JS
The npm package face-plusplus-node receives a total of 4 weekly downloads. As such, face-plusplus-node popularity was classified as not popular.
We found that face-plusplus-node demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.