@putout/plugin-convert-top-level-return
putout plugin adds ability to convert top-level return to process.exit
Last updated 3 years ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @putout/plugin-convert-top-level-return 
SYNC missed versions from official npm registry.

@putout/plugin-convert-top-level-return NPM version

🐊Putout plugin adds ability convert top-level return into process.exit. Moved to @putout/plugin-nodejs.

Install

npm i @putout/plugin-convert-top-level-return -D

Rule

{
    "rules": {
        "convert-top-level-return": "on"
    }
}

❌ Incorrect code example

return;

✅ Correct code Example

process.exit();

License

MIT

Current Tags

  • 4.0.1                                ...           latest (3 years ago)

11 Versions

  • 4.0.1                                ...           3 years ago
  • 4.0.0                                ...           4 years ago
  • 3.1.0                                ...           4 years ago
  • 3.0.0                                ...           5 years ago
  • 2.1.0                                ...           5 years ago
  • 2.0.1                                ...           5 years ago
  • 2.0.0                                ...           5 years ago
  • 1.1.1                                ...           5 years ago
  • 1.1.0                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (6)
Dependents (1)

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