Fair point! Personally, I like to build applications from small, targeted dependencies that do one thing well, but it's fine if you don't find that approach or this library useful. I didn't see anything quite like it on NPM, and I only posted it on the off-chance that someone else might find it useful.
P.S. I'm sure I could re-write it to be more than 50 lines if you'd like.