Comments (2)
I could move the check into the vJoyDevice constructor, so it would only show up when a new device is initialized (instead of when the library is require
'd), and we could then have a disable_version_check
parameter, which would suppress the warning.
But then again, is the warning really that annoying? If you are running different versions of the library and the driver, you are factually running an unsupported setup and I don't see why a little console message warning you of that fact could be that bad.
So basically: Yes, I could move some stuff around and add an option, but I'm not really convinced that it would add much to the library.
from node-vjoy.
Okay, I've now though of another way to disable the warning which is less invasive than what I thought up before. You simply have to set the environment variable DISABLE_VJOY_VERSION_CHECK
to something, and you won't see the warning anymore. This feature is in version 1.2.2 which I've already published to npm and I think we can close this issue now.
from node-vjoy.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-vjoy.