Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@putout/formatter-codeframe

coderaiser48.9kMIT8.0.0

🐊Putout formatter shows code frame with an error

putout, putout-formatter, formatter, codeframe

readme

@putout/formatter-codeframe NPM version

🐊Putout formatter shows codeframe of file with an errors.

Install

npm i putout @putout/formatter-codeframe

Usage

putout --format codeframe lib

Possible output:

/home/coderaiser/putout/packages/putout/lib/putout.js:3:0
  1 | 'use strict';
  2 |
> 3 | debugger;
    | ^ Unexpected "debugger" statement
  4 |
  5 | const recast = require('recast');
  6 | const toBabel = require('estree-to-babel');

✖ 1 errors in 1 files
  fixable with the `--fix` option

License

MIT