Socket
Socket
Sign inDemoInstall

pw98

Package Overview
Dependencies
8
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    pw98

customizable multiple process window


Version published
Maintainers
1
Created

Readme

Source

pw98

Terminal application that customizable multiple process window.

basic

maximum

Installation

yarn global add pw98
# or
npm install -g pw98

you can install it to project local, too

Usage

cd your/project/path
pw98 ./config.json
# or
pw98 /any/config/absolute/path.js

Operation

keytarget panedescription
or -move selected pane. [none] -> [pane1] -> [pane2] -> ... -> [none]
1 - 9-select Nth pane
0-deselect pane
mselected panetoggle maximum / minimum pane
cselected pane or all panesclear log
rselected pane or all panesrestart process
Ctrl+c-exit pw98

Config Structure

Pane

keytypedesc
direction"row" | "column"direction to split pane
procsArray<Proc | Pane>can be nested

Proc

keytypeexample / description
namestring"test"
commandstring"yarn jest"
refreshbooleanrefresh old output before current output. default is false.

Examples

1. Simple ver (JSON)

{
  "direction": "row",
  "procs": [
    { "name": "pane1", "command": "echo sample1-1" },
    { "name": "pane2", "command": "echo sample1-2" }
  ]
}

example1

2. Complex ver (CommonJS Style)

const pane1 = { name: "pane1", command: "echo sample2-1" };
const pane2 = { name: "pane2", command: "echo sample2-2" };
const pane3 = { name: "pane3", command: "echo sample2-3" };
const pane4 = { name: "pane4", command: "echo sample2-4" };

module.exports = {
  direction: "row",
  procs: [
    pane1,
    {
      direction: "column",
      procs: [
        {
          direction: "row",
          procs: [pane2, pane3]
        },
        pane4
      ]
    }
  ]
};

example2


Development

Build (automaticaly)

$ yarn watch

Test

$ node bin/index.js ./examples/config.js

Keywords

FAQs

Last updated on 08 May 2018

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc