console

Service provider for read-only console panels

idleberg

1,339

2

0.6.0

MIT

GitHub

This package provides the following services:

console

Service provider for read-only console panels

apm apm apm CircleCI David

This package is a fork of console-panel, with a few key-differences:

Note: This package is fully API-compatible to console-panel, so you can use it as a drop-in replacement

Screenshot

Installation

apm

Install console from Atom's Package Manager or the command-line equivalent:

$ apm install console

Using Git

Change to your Atom packages directory:

Windows

# Powershell
$ cd $Env:USERPROFILE\.atom\packages
:: Command Prompt
$ cd %USERPROFILE%\.atom\packages

Linux & macOS

$ cd ~/.atom/packages/

Clone repository as console:

$ git clone https://github.com/idleberg/atom-console console

Inside the cloned directory, install dependencies using your preferred Node package manager:

$ yarn || npm install

Usage

This package provides the service to that can be used by other packages. To consume it, add the following to your package.json:

{
  "consumedServices": {
    "console": {
      "versions": {
        "1.0.0": "consumeConsole"
      }
    }
  }
}

Next up, you can consume the service in your package:

consumeConsole(consolePanel) {
  this.consolePanel = consolePanel;

  return new Disposable(() => {
    this.consolePanel = null;
  });
}

License

This work is licensed under The MIT License