Skip to content

node-fun/localface

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

localface

100+ human faces to provide, especially for test

Copyright Notice

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

  1. Install with Node

    npm install localface
  2. Get a count

    var localface = require('localface');
    var womenCount = localface.count['f'];
  3. 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