A CLI tool that instantly converts all non-important 3-letter words in .html, .jsx, .tsx to UwU.
Made with the intention of messing with friends.
NPM: https://www.npmjs.com/package/uwuifycli
npm install uwuifycli
npx uwuify write
The code is contained in 2 main files being in /src being
index.ts
uwuify.ts
index.ts uses the commander npm module in order to parse CLI arguments
uwuify.ts works through converting either the HTML or JSX/TSX to an abstract syntax tree and source offsets, where the text gets changed simply through walking through text nodes.
The development of this package used AI purely for minimal implementation, none for decision-making (eg deciding what packages to use). It helped slightly with fixing syntax errors around the tree traversal. It is also aided in the creation of test files (uncommitted) and the test cases in /test.
If you experience any bugs, please do not hesitate to contact me at ericmzuo1@gmail.com or through github and I'll look to address any issues ASAP.