Git Product home page Git Product logo

Comments (6)

tabrindle avatar tabrindle commented on August 19, 2024

😭 Thank you so much for reporting and finding this issue! 2 questions:

  1. Does this prevent envinfo from printing the info?
  2. Is there an alternative to using native binaries for clipboard support on node/windows?

from envinfo.

Hexxeh avatar Hexxeh commented on August 19, 2024
  1. Yes
  2. Older versions of clipboardy used a non-native way of doing this, so pinning an older version might be one approach. They switched because of issues with large amounts of data in clipboard, but that isn't such concern here.

from envinfo.

tabrindle avatar tabrindle commented on August 19, 2024
  1. Crap.
  2. Awesome.

Would you be willing to PR/test that version change?

from envinfo.

Hexxeh avatar Hexxeh commented on August 19, 2024

The old version of clipboardy has bad Unicode support, not sure if that's an issue for this particular dependency.

The real fix would probably be to publish a non-webpacked version and include a dependency on clipboardy. Might not be appropriate for some of the ways this library is being distributed though.

from envinfo.

tabrindle avatar tabrindle commented on August 19, 2024

envinfo is most useful when used via npx - and webpack enables a much smaller footprint and shorter download time. In my benchmarks before publishing it, it reduced type from initial command to report by several seconds.

An alternate solution might be to use npx to call clipboardy - especially since it's not always used, and only a problem on windows.

from envinfo.

tabrindle avatar tabrindle commented on August 19, 2024

Working on moving the dependency to npx to be installed correctly without being in the main envinfo bundle.

from envinfo.

Related Issues (20)

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.