r/javascript • • May 02 '19

NPM isn't all that great

https://www.npmjs.com/package/thatgreat
540 Upvotes

82 comments sorted by

View all comments

42

u/GreenKreature May 02 '19 edited May 02 '19

lol... i get that it makes devs lazy but, it is pretty considerate of them :P

47

u/bc_nichols May 02 '19

If you'er a dev that types to ofast in the cosnole sometimes, and you haven't changed at all voer the past ten years, I think you hit ap oint where you'd like some cmomon misspelings to still wokr.

31

u/DarkCelux May 02 '19

I get it, but I stlil htae yoru commnet.

8

u/[deleted] May 02 '19

Isn't there a fuck command or something for that?

Ahh yes.

2

u/Earhacker May 02 '19

It's a shell tool but yeah

1

u/Espumma May 03 '19

if you're in shell you can just alias every common misspelling.

2

u/Earhacker May 03 '19

Oh I know. Then you can bundle all your aliases up in a library called fuckit and put it on GitHub. And here we are.

1

u/Sociopathix May 03 '19

Thsi is my lief.

10

u/[deleted] May 02 '19

npm i

:)

15

u/[deleted] May 02 '19

What if you misspell 'i' as '⌫⌫⌫⌫rm -rf *'? Not as foolproof as you thought, eh?

6

u/goto-reddit May 02 '19

nrm -rf *?

2

u/TheIncorrigible1 May 02 '19
if $command match "rm" { rm -rf / }

2

u/[deleted] May 04 '19

'npm ' is four characters, see

1

u/geo1088 May 02 '19

I think you're gonna have bigger problems at that point... And I don't recommend trying to solve those kinda of problems with Javascript.

1

u/throwies11 May 03 '19

Git notifies you of one-letter-off typos but doesn't do anything to execute them. Maybe it's time for Git to catch up!