node package manager
We need your input. Help make JavaScript better: Take the 2017 JavaScript Ecosystem survey ยป


Human.js Library


caolan's async.js is required.

In Browser

<script type="text/javascript" src=""></script>
<script type="text/javascript" src=""></script>

In Node.js

Install using:

npm install human

Include using:

var Human = require('human');



The constructor takes 1 optional object parameter called options. The properties for this object are all optional, and are as follows:

  • gender - String. The gender of the Human (e.g. 'male', 'female'). Default: 'male'
  • name - String. The name of the Human (e.g. 'Jack', 'Henry'). Default: random popular name based on gender
  • orientation - String. Left or Right handed (e.g. 'left', 'right'). Default: 'right'
  • x - Number. The x coordinate position of the Human (e.g. 0). Default: 0
  • y - Number. The y coordinate position of the Human (e.g. 0). Default: 0


var Jack = new Human({
	name: 'Jack',
	gender: 'male',
	orientation: 'left',
	x: 0,
	y: 0


  • say - Make the Human say something (sets to .saying property)
  • face - Change the way the Human is facing
  • wave - The Human gives a friendly wave
  • dance/robot - Performs a lovely little dance

What else?

Not everything is going to be in this documentation. The library is meant to be explored and experimented with. An example of the Object in use can be found in index.html or at