Socket
Book a DemoInstallSign in
Socket

localface

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

localface

100+ human faces to provide, especially for test

0.0.3
latest
npmnpm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

localface

100+ human faces to provide, especially for test

All photos are picked from http://randomuser.me/

All randomly generated photos are copyrighted under a Creative Commons BY-NC-SA 2.0 license. These photos were hand picked from Greg Peverill-Conti's 1,000 faces project.

Usage

  • Install with Node

    npm install localface
    
  • Get a count

    var localface = require('localface');
    var womenCount = localface.count['f'];
    
  • Get a file path

    var file = localface.get('f', _.random(0, womenCount - 1));
    file;		// "/home/fritz/Dev/npm/localface/portraits/women/59.jpg"
    fs.existsSync(file);		// true
    localface.get('m');		// random one
    

Keywords

face

FAQs

Package last updated on 21 Jan 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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.