Skip to content

csombok/powershell-dev-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Overview

PowerShell productivity tools for development

How to setup

This tool is a self-contained PowerShell module. It can be used by explicitly installing to user's PowerShell module directory.

Please find details here how to install custom PowerShell modules.

Tools

Compare NPM dependecies

This tool is suppused to compare npm dependencies in a source and a destination package.json. By using this tool it's easy to higlight version mismatches.

# Simple compare 
npmCompare c:\examples\first\package.json c:\examples\second\package.json

# Include DEV dependecies
npmCompare c:\examples\first\package.json c:\examples\second\package.json -IncludeDevDeps

# Show mathcing entries as well
npmCompare c:\examples\first\package.json c:\examples\second\package.json -IncludeEquals

Example output:

Name                      Type         Source Destination Latest
----                      ----         ------ ----------- ------
@google-cloud/bigquery    dependencies 1.0.0  ^0.9.6      1.0.0
@google-cloud/datastore   dependencies 1.1.0  1.0.4       1.3.3
@google-cloud/debug-agent dependencies 2.3.2  2.1.2       2.3.2
@google-cloud/storage     dependencies 1.5.2  1.2.0       1.5.2

Paremeters

  • Source: Path of the package.json file to be used as the source of the comparison
  • Destination: Path of the package.json file to be used as destination of the comparison
  • Filter: Filter result by package name
  • IncludeEqual: Include matching packages in the result
  • IncludeDevDeps: Include devDependencies in comparison result
  • ShowMismatchOnly: Show package version mismatch only in the result
  • LatestVersionInfo: Show latest npm package version in the result

Compare DLLs in source directories

This tool is suppused to compare dlls in a source and a destination folders. By using this tool it's easy to higlight version mismatches and missing references.

# Simple compare 
dllCompare c:\examples\first c:\examples\second\

# Use filter
dllCompare c:\examples\first c:\examples\second\ -Filter Microsoft*

# Analyze file versions
dllCompare c:\examples\first c:\examples\second\ -CompareVersion

Example output:

Name                              FileVersion  SideIndicator
----                              -----------  -------------
Hangfire.Core.resources.dll       1.6.8.0      =>
Hangfire.Core.dll                 1.6.8.0      =>
Hangfire.SqlServer.dll            1.6.8.0      =>
Hangfire.SqlServer.dll            0.0.0.0      =>
Microsoft.Owin.dll                3.0.30819.47 =>
Microsoft.Owin.Host.SystemWeb.dll 3.0.30819.47 =>
Newtonsoft.Json.dll               5.0.1.16007  =>
Owin.dll                          1.0          =>

About

Productivity tools development

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published