node-procfile
A Procfile parser for node.js.
Installation
Installing npm (node package manager)
curl http://npmjs.org/install.sh | sh
Installing node-procfile
[sudo] npm install procfile
Usage
There are two simple methods when using node-procfile
: .parse()
and .stringify()
. If you are familiar with using the native JSON
methods in Javascript, there is nothing new about the API.
var fs =procfile = ;var data = fsproc = procfile;consoledirproc
This outputs the results of the procfile parse:
web:command: 'node'options: 'myapp.js' '-p' '80' '--some-option'worker:command: 'node'options: 'myworker.js' '--other-option'
Run Tests
$ vows --spec