1.0.12 • Published 8 years ago

psmoduleregister v1.0.12

Weekly downloads
68
License
SEE LICENSE IN LI...
Repository
github
Last release
8 years ago

PSModuleRegister

Version 1.0.12 Windows Only

Register a module in user's PS Module path

Pass the module path to create a symbolic link in the PS Module path Install package from npm globally and register it in the PS Module path PSModuleRegister searches for the first module manifest present in the root of the provided path or the installed package and creates a symbolic link with such name according to PowerShell module naming conventions to make it available directly in the user's console. Additionally this module perform the following checks/actions:

  • Check for admin permissions (these are required for the symbolic link creation)
  • Attempt to elevate to gain administrative permissions if current user doesn't have
  • Enable symbolic link behavior to allow PowerShell to follow through the links
  • Add user's Documents\WindowsPowerShell\Modules to $env:PSModulePath list if it's not there

Installation:

PS> npm install -g psmoduleregister

Example:

PS> psmoduleregister --register C:\MyPath\MyModule

Where the path provided contains a PowerShell module manifest (.psd1). For this example let's say MyModule.psd1 After its execution user should be able to work directly with the module i.e.:

PS> Import-Module MyModule

Example:

PS> psmoduleregister --install ps-modulepackage

Installs ps-modulepackage globally and register it in the module path. Use any existing npm PowerShell module instead of ps-modulepackage. Supposing ps-modulepackage have a module manifest at its root (.psd1) user can import the module directly

PS> Import-Module MyModule
1.0.12

8 years ago

1.0.11

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago