mirror of
https://github.com/SrIzan10/nodemon.git
synced 2026-05-01 10:55:09 +00:00
@@ -4,6 +4,8 @@ function main() {
|
||||
if (process.env.SUPPRESS_SUPPORT || process.env.OPENCOLLECTIVE_HIDE || process.env.CI) {
|
||||
return;
|
||||
}
|
||||
|
||||
const message = '\u001b[32mLove nodemon? You can now support the project via the open collective:\u001b[22m\u001b[39m\n > \u001b[96m\u001b[1mhttps://opencollective.com/nodemon/donate\u001b[0m\n';
|
||||
|
||||
try {
|
||||
const Configstore = require('configstore');
|
||||
@@ -18,11 +20,11 @@ function main() {
|
||||
const last = conf.get('lastCheck');
|
||||
|
||||
if (!last || now - week > last) {
|
||||
console.log('\u001b[32mLove nodemon? You can now support the project via the open collective:\u001b[22m\u001b[39m\n > \u001b[96m\u001b[1mhttps://opencollective.com/nodemon/donate\u001b[0m\n');
|
||||
console.log(message);
|
||||
conf.set('lastCheck', now);
|
||||
}
|
||||
} catch (e) {
|
||||
console.log('\u001b[32mLove nodemon? You can now support the project via the open collective:\u001b[22m\u001b[39m\n > \u001b[96m\u001b[1mhttps://opencollective.com/nodemon/donate\u001b[0m\n');
|
||||
console.log(message);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user