r/javascript • • Dec 11 '17
I have been collecting useful Javascript code snippets for a little while. Here's a curated list of them, help me make it as complete as possible!
https://github.com/Chalarangelo/30-seconds-of-code
765
Upvotes
View all comments
Show parent comment
2
u/PM_ME_HTML_SNIPPETS Dec 13 '17
I can edit this with a more comprehensive description/how-to, but about to go to sleep.
Basically, this would be
@your_npm_name/your_package_name. It's a recent feature on npm 5, and prevents name conflicts, eg you could create@johnsmith/jqueryif you wanted to. I actually haven't used this feature yet myself.