New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

shell-sessions

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shell-sessions

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

latest
Source
npmnpm
Version
1.0.5
Version published
Maintainers
1
Created
Source

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 wait , 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 >> user.void )
  }
});

//outputs the files inside the directory "folder"

Installation

Install the package using npm:

npm install shell-sessions

Keywords

Terminal

FAQs

Package last updated on 30 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts