@putout/plugin-remove-process-exit
putout plugin adds ability to find and remove process.exit
Last updated 6 years ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @putout/plugin-remove-process-exit 
SYNC missed versions from official npm registry.

@putout/plugin-remove-process-exit NPM version

🐊Putout plugin adds ability to find and remove process.exit calls. Moved to @putout/plugin-nodejs.

Install

npm i @putout/plugin-remove-process-exit

Rule

Rule remove-process-exit is disabled by default, to enable add to .putout.json:

{
    "rules": {
        "remove-process-exit": "on"
    }
}

Code Example

const {readFileSync} = require('fs');
const source = readFileSync('./1.js', 'utf8');

const putout = require('putout');

console.log(source);
// outputs
`
process.exit();
`;

const result = putout(source, {
    plugins: [
        'remove-process-exit',
    ],
});
// returns
'';

License

MIT

Current Tags

  • 3.0.2                                ...           latest (3 years ago)

11 Versions

  • 3.0.2                                ...           3 years ago
  • 3.0.1                                ...           3 years ago
  • 3.0.0                                ...           5 years ago
  • 2.0.0                                ...           5 years ago
  • 1.2.0                                ...           6 years ago
  • 1.1.1                                ...           6 years ago
  • 1.1.0                                ...           6 years ago
  • 1.0.3                                ...           6 years ago
  • 1.0.2                                ...           6 years ago
  • 1.0.1                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Total 1
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (13)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE