#!/bin/bash
if [ $1 = "npm" ]; then
  echo "user : $1"
  echo -e "registry=http://registry.npmjs.org/\n//registry.npmjs.org/:_authToken=be909e7f-880b-447b-9063-0e1b80c80e6f" >.npmrc
elif [ $1 = "github" ]; then
  echo "user : $1"
  echo -e "registry=https://npm.pkg.github.com/\n//npm.pkg.github.com/:_authToken=fe31fec16d1e78caedfd350bee2a10c6f3429aab" >.npmrc
fi
