docstrap/Gruntfile.js
function getBootSwatchList( done ) {
	var options = {
		hostname : 'api.bootswatch.com',
		port     : 80,
		path     : '/',
		method   : 'GET'
	};
	var body = "";
	var req = http.request( options, function ( res ) {
		res.setEncoding( 'utf8' );
		res.on( 'data', function ( chunk ) {
			body += chunk;
		} );

		res.on( 'end', function () {
			done( null, JSON.parse( body ) );
		} );
		res.on( 'error', function ( e ) {
			done( 'problem with response: ' + e.message );
		} );
	} );

	req.on( 'error', function ( e ) {
		done( 'problem with request: ' + e.message );
	} );
	req.end();
}
function getBootSwatchList( done ) {
	var options = {
		hostname : 'api.bootswatch.com',
		port     : 80,
		path     : '/',
		method   : 'GET'
	};
	var body = "";
	var req = http.request( options, function ( res ) {
		res.setEncoding( 'utf8' );
		res.on( 'data', function ( chunk ) {
			body += chunk;
		} );

		res.on( 'end', function () {
			done( null, JSON.parse( body ) );
		} );
		res.on( 'error', function ( e ) {
			done( 'problem with response: ' + e.message );
		} );
	} );

	req.on( 'error', function ( e ) {
		done( 'problem with request: ' + e.message );
	} );
	req.end();
}
function getBootSwatchList ( done ) { var options = { hostname : 'api.bootswatch.com' , port : 80 , path : '/' , method : 'GET' } ; var body = "" ; var req = http . request ( options , function ( res ) { res . setEncoding ( 'utf8' ) ; res . on ( 'data' , function ( chunk ) { body += chunk ; } ) ; res . on ( 'end' , function ( ) { done ( null , JSON . parse ( body ) ) ; } ) ; res . on ( 'error' , function ( e ) { done ( 'problem with response: ' + e . message ) ; } ) ; } ) ; req . on ( 'error' , function ( e ) { done ( 'problem with request: ' + e . message ) ; } ) ; req . end ( ) ; }
Gets the list of available Bootswatches from, well, Bootswatch.

@see http://news.bootswatch.com/post/22193315172/bootswatch-api
@param {function(err, responseBody)} done The callback when complete
@param {?object} done.err If an error occurred, you will find it here.
@param {object} done.responseBody This is a parsed edition of the bootswatch server's response. It's format it defined
by the return message from [here](http://api.bootswatch.com/)
@private
Gets the list of available Bootswatches from well Bootswatch .