2 ms·
You'd install it via apt obviously. For Ubuntu: curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - sudo sh -c 'echo "deb [arch
by nailer 7y ago
You'd install it via apt obviously. For Ubuntu:
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-debian-jessie-prod jessie main" > /etc/apt/sources.list.d/microsoft.list'
sudo apt-get update
sudo apt-get install -y powershell
I'm a node developer, here's what I used to find packages that had a cracked dependency recently:
$results = @{}
ls -recurse -filter "eslint-scope" | foreach {
$file = "${PSItem}\package.json"
$version = cat $file | convertfrom-json | select -ExpandProperty version
$results.Add($file,$version) }
echo $results | format-list
PS. pwsh should really combine reading a file, determining it's type, and parsing it, into one command. Like:
open $file | select -ExpandProperty version
I know I can make this, it just should be in the stdlib.