Giter Site home page Giter Site logo

Comments (2)

jangxx avatar jangxx commented on July 3, 2024

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.

jangxx avatar jangxx commented on July 3, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.