😀 friendly-url
A friendly url function made and used by Stack Exchange on their various websites (1 2).
Usage
$ npm install friendly-url
(...)
$ node
> var friendlyUrl = require('friendly-url')
undefined
friendlyUrl('What does “use strict” do in JavaScript, and what is the reasoning behind it?')
'what-does-use-strict-do-in-javascript-and-what-is-the-reasoning-behind-it'