4.0.0 • Published 5 months ago

@putout/cli-process-file v4.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

@putout/cli-process-file NPM version

Process file using 🐊Putout, Samadhi and ESLint.

Install

npm i @putout/cli-process-file

Example

import initProcessFile from '@putout/cli-process-file';

const processFile = initProcessFile({
    fix: true,
});

const {code, places} = await processFile({
    source: `
        const a = b.a
    `,
});

// returns
['const {a} = b;', [{
    rule: 'no-undef (eslint)',
    message: '\'b\' is not defined.',
    position: {
        line: 2,
        column: 13,
    },
}]];

License

MIT

4.0.0

5 months ago

3.0.1

7 months ago

3.0.0

7 months ago

2.4.0

8 months ago

2.3.2

8 months ago

2.3.1

8 months ago

2.3.0

8 months ago

2.2.0

8 months ago

2.1.1

8 months ago

2.1.0

8 months ago

2.0.2

8 months ago

2.0.1

9 months ago

2.0.0

9 months ago

1.0.0

9 months ago