Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pw98

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pw98

customizable multiple process window

  • 0.1.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
increased by400%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 08 May 2018

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc