Skip to content
This repository was archived by the owner on Aug 11, 2022. It is now read-only.

Commit 2b97a57

Browse files
othiym23iarna
authored andcommitted
adduser: remove obsolescent process.binding use
Fixes: #9544 PR-URL: #9549
1 parent 2153297 commit 2b97a57

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/adduser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ var userValidate = require('npm-user-validate')
77
var crypto
88

99
try {
10-
crypto = process.binding('crypto') && require('crypto')
10+
crypto = require('crypto')
1111
} catch (ex) {}
1212

1313
adduser.usage = 'npm adduser [--registry=url] [--scope=@orgname] [--always-auth]'

0 commit comments

Comments
 (0)