πŸ’‘ 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.

πŸ“ github.com/varjmes/ext

πŸ’» 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'

Show thread
Follow

Thanks to my purr programmer for her assistance.

Β· Moa Β· 1 Β· 1 Β· 0
Sign in to participate in the conversation
Mastodon for Tech Folks

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!