Skip to content

Instantly share code, notes, and snippets.

param (
[ValidateNotNullOrEmpty()]
[string] $ScriptPath,
[ValidateNotNullOrEmpty()]
[string] $TaskName
# Pass in as many arguments as you want....
)
# Setup error handling.
Trap
@dev-rowbot
dev-rowbot / push_to_verdaccio.py
Created June 8, 2018 11:32
Import packages from an exported verdaccio "storage" folder to a running Verdaccio instance
#!/usr/bin/python
from os import listdir, chdir, getcwd
from os.path import isfile, join
import re
from subprocess import call
import json
with open('.sinopia-db.json') as f:
data = json.load(f)