-
Notifications
You must be signed in to change notification settings - Fork 672
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
907b8d0
commit a9b414e
Showing
2 changed files
with
19 additions
and
4 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
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env node | ||
|
||
function isTrue (value) { | ||
return !!value && value !== '0' && value !== 'false' | ||
} | ||
|
||
const envDisable = isTrue(process.env.DISABLE_OPENCOLLECTIVE) || isTrue(process.env.OPEN_SOURCE_CONTRIBUTOR) || isTrue(process.env.CI) | ||
const logLevel = process.env.npm_config_loglevel | ||
const logLevelDisplay = ['silent', 'error', 'warn'].indexOf(logLevel) > -1 | ||
|
||
if (!envDisable && !logLevelDisplay) { | ||
console.log('\u001b[96m\u001b[1mThank you for using Serverless Express by Vendia!\u001b[96m\u001b[1m') | ||
console.log('\u001b[0m\u001b[96mVendia just released their Developer Preview of Vendia Share, a service that lets you share data with partners on a distributed ledger with ease!\u001b[22m\u001b[39m') | ||
console.log('\u001b[0m\u001b[96mSign up for the Developer Preview at https://vendia.net?ref=se \u001b[22m\u001b[39m') | ||
} |