summaryrefslogtreecommitdiff
path: root/server/.yarn/unplugged/nodemon-npm-2.0.19-5d6fa595c6/node_modules/nodemon/bin/postinstall.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/.yarn/unplugged/nodemon-npm-2.0.19-5d6fa595c6/node_modules/nodemon/bin/postinstall.js')
-rwxr-xr-xserver/.yarn/unplugged/nodemon-npm-2.0.19-5d6fa595c6/node_modules/nodemon/bin/postinstall.js31
1 files changed, 31 insertions, 0 deletions
diff --git a/server/.yarn/unplugged/nodemon-npm-2.0.19-5d6fa595c6/node_modules/nodemon/bin/postinstall.js b/server/.yarn/unplugged/nodemon-npm-2.0.19-5d6fa595c6/node_modules/nodemon/bin/postinstall.js
new file mode 100755
index 0000000..34c8194
--- /dev/null
+++ b/server/.yarn/unplugged/nodemon-npm-2.0.19-5d6fa595c6/node_modules/nodemon/bin/postinstall.js
@@ -0,0 +1,31 @@
+#!/usr/bin/env node
+
+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');
+ const pkg = require(__dirname + '/../package.json');
+ const now = Date.now();
+
+ var week = 1000 * 60 * 60 * 24 * 7;
+
+ // create a Configstore instance with an unique ID e.g.
+ // Package name and optionally some default values
+ const conf = new Configstore(pkg.name);
+ const last = conf.get('lastCheck');
+
+ if (!last || now - week > last) {
+ console.log(message);
+ conf.set('lastCheck', now);
+ }
+ } catch (e) {
+ console.log(message);
+ }
+}
+
+main();