:package: Transform ES5 Functions to ES6 Classes
prototype
prototype
prototype
defineProperty
Complex example: Multiple functions in same file with one of the functions having same name.
npm i -g jscodeshift
git clone --depth=1 https://github.com/dhruvdutt/es5-function-to-class-codemod codemod && cd codemod
jscodeshift -t func-to-class.js example/input.js
prototype