Skip to content

Commit

Permalink
Removes last modified from npm output
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelbr committed Sep 5, 2018
1 parent 07c84a8 commit 75ed8d5
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions npm/handbook.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/usr/bin/env node

const format = require("date-fns/format");
const nb = require("date-fns/locale/nb");
const PromptList = require("prompt-list");
const chalk = require("chalk");

Expand Down Expand Up @@ -57,12 +55,6 @@ pages()

function printMd(res) {
console.log("\n" + res);
console.log(chalk.blue("\nSist endret: " + humanize(page.modified)));
}
})
.catch(console.error);

function humanize(m) {
var mdate = new Date(m);
return format(mdate, "EEEE do MMMM, YYYY. HH:mm ", { locale: nb });
}

0 comments on commit 75ed8d5

Please sign in to comment.