forked from sinonjs/sinon
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix sinonjs#1746: Remove dependency on ES2015 code from post-install …
…script This allows Sinon to be installed by legacy node versions.
- Loading branch information
Showing
1 changed file
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); |