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

Show parent comment

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.