💡 Wanting to get better at node.js by making lil things
🗄 I made "ext" which tells you the file extensions of the file names you pass in.
💻 npx @varjmes/ext wow.js this.spec.js .is nice
✅ returns ['.js', '.js', '.is', 'nice']
💻 npm i @varjmes/ext💻 const extensions = require('@varjmes/ext')('butts.js')💻 console.log(extensions)💻 '.js'
Thanks to my purr programmer for her assistance.
This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!