New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

nudity

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nudity

Node.js nudity detector based on Nude.js

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

Nudity

Node.js nudity detector based on Nude.js

Installation

$ npm install nudity

Example

var nudity = require('nudity');

var imagePath = '/path/to/image.jpg';

nudity.scanFile(imagePath, function(err, result) {
  console.log(result + ' = ' + imagePath);
});

API

scanFile(imagePath, callback)

Scans the file given by imagePath. callback returns err and result. result of true means nudity detected, false means not.

scanData(data, callback)

Scans the contents (of a file) given by data. callback returns err and result. result of true means nudity detected, false means not.

Test

node ./test/test.scanFile.js [imagePath]
node ./test/test.scanData.js [imagePath]

Keywords

nude

FAQs

Package last updated on 20 Nov 2014

Did you know?

Socket

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.

Install

Related posts