Package Exports
- @putout/plugin-simplify-ternary
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@putout/plugin-simplify-ternary) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
putout-plugin-simplify-ternary

putout plugin adds ability to convert arguments to rest.
Install
npm i @putout/plugin-simplify-ternary -DRule
{
"rules": {
"simplify-ternary": true
}
}❌ Incorrect code example
module.exports = fs.copyFileSync ? fs.copyFileSync : copyFileSync;✅ Correct code Example
module.exports = fs.copyFileSync || copyFileSync;License
MIT