Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.