localface

0.0.3 • Public • Published

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

/localface/

    Package Sidebar

    Install

    npm i localface

    Weekly Downloads

    10

    Version

    0.0.3

    License

    MIT

    Last publish

    Collaborators

    • fritz-lium
    • fritx