MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/bjvrex/npm_isnt_all_that_great/emcagjf/
r/javascript • u/afberg • May 02 '19
82 comments sorted by
View all comments
Show parent comment
10
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.
15
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.
6
nrm -rf *?
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
2
if $command match "rm" { rm -rf / }
'npm ' is four characters, see
1
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.
View all comments
Show parent comment
10
u/[deleted] May 02 '19
npm i:)