@sidekick/analyser-common

1.0.2 • Public • Published

analyser-common

Build Status

Module that provides stdin input in a pre-defined way to a Sidekick analyser.

Provides analysers with a setup object that contains:

  • config (any configuration file contents for the analyser, e.g. .eslintrc file contents)
  • contents (the contents of the file to be analysed)
  • filePath (the file path of the file to be analysed)

You can easily write your own analysers for use with Sidekick. Sidekick analysers can be written in any language; all you need to do is accept input via stdin and provide output via stdout.

Installation

npm install --save @sidekick/analyser-common

Usage

var sidekickAnalyser = require("@sidekick/analyser-common");
sidekickAnalyser(function(setup){
  //run the analyser
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    4
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    4
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i @sidekick/analyser-common

Weekly Downloads

4

Version

1.0.2

License

MIT

Last publish

Collaborators

  • rishson
  • sidekick
  • timruffles