Skip to content

Runevoxx/shell-sessions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

shell-sessions

A tool for executing commands locally , with a session saving system ( Multiple terminal instances can be run individually )

Usage

const { Terminal } = require('shell-sessions');

const session = new Terminal();
session.execute('cd folder' , (err, output) => {
  if (err) {
    console.error(err);
    return;
  }else{
    console.log(output);
    session.execute('dir' , (err, output) => {
      if (err) {
        console.error(err);
        return;
      }else{
        console.log(output);
      }
    });//minor issue , my code doesn't wait for the previous command to complete. , so you have to wait for an output and execute the next command after that like this , if you've any workaround this , i kindly ask you to contact me on discord and tell me what that is! thanks. ( Discord >> runevox )
  }
});

//outputs the files inside the directory "folder"

Installation

Install the package using npm:

npm install shell-sessions

About

Source Code of my npm package , "shell-sessions"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published