Skip to content

Commit

Permalink
Fix sinonjs#1746: Remove dependency on ES2015 code from post-install …
Browse files Browse the repository at this point in the history
…script

This allows Sinon to be installed by legacy node versions.
  • Loading branch information
mroderick committed Mar 27, 2018
1 parent 224084b commit e43c40f
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions scripts/support-sinon.js
@@ -1,12 +1,18 @@
"use strict";
/* eslint-disable no-console */

var color = require("../lib/sinon/color");
var green = "\u001b[32m";
var white = "\u001b[22m\u001b[39m";
var boldCyan = "\u001b[96m\u001b[1m";
var reset = "\u001b[0m";

var output =
color.green(
"Have some ❤️ for Sinon? You can support the project via Open Collective:"
) +
color.white("\n > ") +
color.cyan(color.bold("https://opencollective.com/sinon/donate\n"));
green +
"Have some ❤️ for Sinon? You can support the project via Open Collective:" +
white +
"\n > " +
boldCyan +
"https://opencollective.com/sinon/donate\n" +
reset;

console.log(output);

0 comments on commit e43c40f

Please sign in to comment.