Print a beautiful millipede
First, install node.js.
Install it globally! Run
npm install -g millipede
Then show off as much as you can!
millipede --size 42 --reverse --animate
See the usage for more amazing features:
Usage: millipede [options]
Options:
-h, --help output usage information
-V, --version output the version number
-s, --size <value> size of the millipede
-p, --position <value> move the millipede forward, make it move!
-r, --reverse reverse the millipede
-t, --top <value> add <value> lines of top padding
-l, --left <value> add <value> lines of left padding
-a, --animate animate the millipede
-c, --center center the millipede on the screen
-S, --full-size use a full size millipede!
Add it to the dependencies of your project!
npm install millipede --save
Then use it everywhere!
var millipede = require('millipede');
var express = require('express');
module.exports = express()
.get('/', function (req, res) {
res.setHeader('Content-Type', 'text/plain');
res.send(millipede(42).toString());
})
.listen(4242);
- Stack Overflow
- #getmillipede on Freenode
Install the development dependencies:
npm install -g grunt-cli
npm install
We want 100% test coverage on this project, everything has to be tested.
Run the tests using
grunt test