An alternative to Azer's slug-to-title module, as it and one of its dependencies (to-title) were unpublished from npm, which you can read more about here.
This is mostly the same, however published to npm and with to-title
swapped out for titlecase
.
npm install --save slug-title
var slugTitle = require('slug-title')
slugTitle('hello-world') // Hello World