🚀 Big News:Socket Has Acquired Secure Annex.Learn More
Socket
Book a DemoSign in
Socket

@putout/cli-process-file

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@putout/cli-process-file

Run all 🐊Putout linters

Source
npmnpm
Version
2.3.2
Version published
Weekly downloads
6K
5.46%
Maintainers
1
Weekly downloads
 
Created
Source

@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

Keywords

putout

FAQs

Package last updated on 06 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts