Giter Site home page Giter Site logo

node-hide-console-window's Introduction

Hi there! I'm Eduardo Leite

I'm a passionate full-stack developer who loves coding. I've worked with a wide range of technologies, from C++ for microcontrollers to WebRTC for web apps.

Right now, my main tech stack includes React for the website's front-end, Tailwind for the design, and NestJS for the back-end. I host my projects on Google Cloud, and automate then with CircleCI for a smooth development and deployment process.

Blog / Portfolio



Public Projects


Technologies

Top Langs


Connect with me


node-hide-console-window's People

Contributors

hetrodoo avatar popstas avatar titushm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

node-hide-console-window's Issues

Support Windows Terminal

If the default terminal application is not set to windows console host but to windows terminal, the node application will start inside windows terminal which results in a secondary empty window which can be toggled hidden, but it does not have any effect on the real console window which is hosted inside windows terminal.

with windows terminal as default
Desktop.2022.06.03.-.23.20.21.02_Trim_Trim.mp4
with windows console host as default
Desktop.2022.06.03.-.23.20.21.02_Trim_Trim.2.mp4

Doesn't work with bun

When trying to install with bun I get the following error

bun add v1.0.32-canary.21 (5fec71bd)

 installed [email protected]

 1 package installed [360.00ms]

 Blocked 1 postinstall. Run `bun pm untrusted` for details.
1 | const {showConsole, hideConsole} = require("./build/Release/node-hide-console-window");
                                               ^
error: Could not resolve: "./build/Release/node-hide-console-window"
    at C:\Users\this1\Desktop\Software\Software\Bat2Exe\src\node_modules\node-hide-console-window\index.js:1:44

How to integrate with pkg

Hi, thank you very much for this package.

Could you provide an example of how to integrate with pkg?

Failing to compile with nexe - Unable to find Specified Module process.dlopen()

Hello everyone!
I'm having issues to use node-hide-console-window with nexe. The program run correctly by npm start, but I'm getting the following issue when running the .exe after build:

return process.dlopen(module, path.toNamespacedPath(filename));
                 ^

Error: Não foi possível encontrar o módulo especificado. (Unable to find especified Module)
\\?\C:\Arquivos\Workspaces\ManagedByVw\Builded\node_modules\node-hide-console-window\build\Release\node-hide-console-window.node
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:1122:18)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.<anonymous> (C:\Arquivos\Workspaces\ManagedByVw\Builded\node_modules\node-hide-console-window\index.js:1:36)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14) 

I've already tryed:
npm i node-hide-console-window
npm rebuild node-hide-console-window
Delete node_modules and package-lock.json
npm cache clean --force
npm update
npm rebuild node-hide-console-window --build-from-source
installed another node version with nvm and switched
reinstalled nexe

I'm using node v14.15.3, npm 6.14.9, Windows 10 x64 22H2 on A10-4800M

My package.json

{
  "name": "managedbybe",
  "version": "1.0.0",
  "description": "Backend do ManagedBy",
  "main": "./src/index.js",
  "scripts": {
    "test": "nodemon node ./src/index.js",
    "start": "node ./src/index.js"
  },
  "keywords": [
    "javascript",
    "php",
    "nodejs"
  ],
  "author": "Lucas Rodrigues do Nascimento",
  "license": "ISC",
  "dependencies": {
    "express": "^4.17.3",
    "node-hide-console-window": "^2.1.1",
    "sequelize": "^6.17.0",
    "sequelize-cli": "^6.5.2",
    "systray": "^1.0.5",
    "tedious": "^15.1.2"
  },
  "devDependencies": {
    "nexe": "^4.0.0-rc.2",
    "nodemon": "^2.0.15"
  }
}

I'm requiring as this in ./src/index.js:
const {hideConsole,showConsole} = require("node-hide-console-window");
I've tried to importe as ConsoleWindow also, still the same.

I'm not sure if it's an node-hide-console-window problem, or node.js or nexe. Please let me know if i'm in the wrong place.

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.