Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jamiebuilds/enable-npm-2fa
A script for enabling 2FA on all of your npm packages
https://github.com/jamiebuilds/enable-npm-2fa
Last synced: about 2 months ago
JSON representation
A script for enabling 2FA on all of your npm packages
- Host: GitHub
- URL: https://github.com/jamiebuilds/enable-npm-2fa
- Owner: jamiebuilds
- Created: 2018-07-25T22:52:06.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-07-25T22:52:19.000Z (about 6 years ago)
- Last Synced: 2024-07-18T15:29:50.420Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 55
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# enable-npm-2fa
This is a script which will automate the process of updating all of your
packages to use npm's 2-Factor Authentication.You must already have 2-Factor Authentication enabled on your account.
This script will blindly enable 2FA on every package you have access to. If you
want to do something different, I recommend you just edit the script.- Clone this repo
- Run `yarn install`
- Run `node index.js`The script will prompt you for your username, password, and a one time password.
Beware: This script is not tested very much, I did enable 2FA for a couple
hundred packages on my own account though.I would give the script a read-through so you understand it.
PRs improving this script are welcome.