A Homo Sapien javascript object
caolan's async.js is required.
<script type="text/javascript" src="https://raw.github.com/caolan/async/master/lib/async.js"></script>
<script type="text/javascript" src="https://raw.github.com/jackcannon/human.js/master/js/human.js"></script>
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:
var Jack = new Human({
name: 'Jack',
gender: 'male',
orientation: 'left',
x: 0,
y: 0
});
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 humanjs.com