r/javascript • • Dec 16 '18

Coming from Python to JS NSFW

const print = console.log

I found my safe space.

607 Upvotes

156 comments sorted by

View all comments

Show parent comments

5

u/killchain Dec 16 '18

Almost like npm isntall is a default alias for npm install.

8

u/GabrielChiconiDev Dec 17 '18

Why doesn't everybody npm i though?

4

u/killchain Dec 17 '18

I do. At one point I was so lazy that I even had ni alias for the same thing.

2

u/mrbojingle Dec 17 '18

The fewer characters the better.

1

u/diatu Dec 17 '18

Are you trying to reinvent bash commands? Cause that's how you get bash commands!

edit:pnctatn

2

u/mrbojingle Dec 17 '18

Yes! All my bash aliases are 1-3 chars abbrivations. I also made a nice aliases builder that takes a name and my last run command and sticks a new alias in my bash_aliases file. It's pretty sweet.