Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Shout out to https://www.npmjs.com/package/sql-template-strings, which does a similar template string SQL escaping standalone.


Had to check if I wrote that lib. I wrote pretty much the same thing, not sure if I published it standalone...


> Had to check if I wrote that lib..

This reminds me of a friend of mine.. He got struggled with a programming-related task. When he gave up, he turned to StackOverflow, where he found the exact answer there, ready to be copy/paste. Ironically, it turns out that he was the one who answered it a few years back :)


Oh, that happens to me quite a bit (I'm a top 500 SO user). I find some great question or answer and then try to upvote it and then get confused why it won't let me.





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: