Code Monkey home page Code Monkey logo

node-tmux's People

Contributors

macjuul avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

rob-rychs vgw-tom

node-tmux's Issues

Doesn't work on nodejs v14.1.0

I installed the module using npm install --save node-tmux in my

Distributor ID: Ubuntu
Description: Ubuntu 16.04.6 LTS
Release: 16.04
Codename: xenial

and when I tried to import the module:

import {tmux} from 'node-tmux';
^^^^
SyntaxError: The requested module 'node-tmux' does not provide an export named 'tmux'
at ModuleJob._instantiate (internal/modules/esm/module_job.js:92:21)
at async ModuleJob.run (internal/modules/esm/module_job.js:107:20)
at async Loader.import (internal/modules/esm/loader.js:179:24)

Then I tried

import * as tmux from 'node-tmux';
console.log(tmux)
tmux().then(tm => { ...

Which resulted to:

[Module] {
default: { Tmux: [Function: Tmux], tmux: [Function: tmux] }
}
file:///home/test/mcn/index.js:6
tmux().then(tm => {
^
TypeError: tmux is not a function

Even tho i tried using

tmux.default.tmux().then(tm => { ...

I still couldn't get an instance

How to use ?

I've been trying to implement this in my program for quite some time now, with no success.

This lib being made of all promises, I can't ever use the Tmux class in the then() block, as it's still pending.
How do I use the functions ?

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.