Format JavaScript Standard Style as Stylish (i.e. snazzy) output
94
Build a Node.js stream pipeline that processes JavaScript linter output through multiple stages and saves reports when errors are found.
Create a module that exports a createLinterPipeline function that:
The pipeline should propagate errors using standard stream error events and handle the finish event to trigger file writing when needed.
/**
* Creates a linter output processing pipeline
* @param {Readable} inputStream - Source stream containing compact linter output (JSON)
* @param {Writable} outputStream - Destination stream for formatted output
* @param {string} reportPath - File path to save report when errors are detected
* @returns {Object} Object with 'snazzy' property containing the snazzy stream instance
*/
function createLinterPipeline(inputStream, outputStream, reportPath);@generates
Provides stream-based transformation of compact linter output to stylish format.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/npm-snazzydocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10