Skip to content

Commit

Permalink
humanize the output URL
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jan 11, 2015
1 parent e3cdd25 commit 71697ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/output.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';
var prettyBytes = require('pretty-bytes');
var sortOn = require('sort-on');
var humanizeUrl = require('humanize-url');
var THRESHOLD = 70;

function overview(url, strategy, score) {
Expand Down Expand Up @@ -60,7 +61,7 @@ module.exports = function (parameters, response) {
var threshold = parameters.threshold || THRESHOLD;

console.log(renderer(
overview(response.id, parameters.strategy, response.score),
overview(humanizeUrl(response.id), parameters.strategy, response.score),
statistics(response.pageStats),
ruleSetResults(response.formattedResults.ruleResults),
threshold
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"dependencies": {
"chalk": "^0.5.1",
"googleapis": "^1.0.22",
"humanize-url": "^1.0.0",
"meow": "^2.1.0",
"object-assign": "^2.0.0",
"prepend-http": "^1.0.0",
Expand Down

0 comments on commit 71697ab

Please sign in to comment.