mazzy.Powershell.Chunks 1.0.0

The native Powershell module contain cmdlet Get-Chunk splits an array into arrays each not exceeding the given size.

Install-Package mazzy.Powershell.Chunks -Version 1.0.0
dotnet add package mazzy.Powershell.Chunks --version 1.0.0
<PackageReference Include="mazzy.Powershell.Chunks" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add mazzy.Powershell.Chunks --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Powershell.Chunks

Build status
PowerShell Gallery
NuGet

Powershell.Chunks is a Powershell cmdlet that splits an array into arrays each not exceeding the given size.
The cmdlet preserve or reverse the order of elements depending on the sign of the parameter size.

Examples

'a','b','c','d','e' | Get-Chunk 2             # Returns @( @('a','b'), @('c','d'), @('e') )

Get-Chunk -3 -InputObject @(1,2,3,4,5,6,7,8)  # Returns @( @(8,7,6), @(5,4,3), @(2,1) )

More Examples.

Installation

Automatic install the module from the PowerShell Gallery:

Install-Module -Name Powershell.Chunks
Import-Module Powershell.Chunks

Automatic install the module from the NuGet.org:

nuget install mazzy.Powershell.Chunks

or manual:

  • Download and unblock the latest .zip file.
  • Extract the .zip into your $PSModulePath, e.g. ~\Documents\WindowsPowerShell\Modules.
  • Ensure the extracted folder is named Powershell.Chunks.
  • Set an execution policy to RemoteSigned or Unrestricted to execute not signed modules Set-ExecutionPolicy RemoteSigned.
  • Run Import-Module Permutation.

Changelog

  • CHANGELOG.md
  • <https://github.com/mazzy-ax/Powershell.Chunks/releases>.

License

This project is released under the licensed under the MIT License.

<mazzy@mazzy.ru>

Powershell.Chunks

Build status
PowerShell Gallery
NuGet

Powershell.Chunks is a Powershell cmdlet that splits an array into arrays each not exceeding the given size.
The cmdlet preserve or reverse the order of elements depending on the sign of the parameter size.

Examples

'a','b','c','d','e' | Get-Chunk 2             # Returns @( @('a','b'), @('c','d'), @('e') )

Get-Chunk -3 -InputObject @(1,2,3,4,5,6,7,8)  # Returns @( @(8,7,6), @(5,4,3), @(2,1) )

More Examples.

Installation

Automatic install the module from the PowerShell Gallery:

Install-Module -Name Powershell.Chunks
Import-Module Powershell.Chunks

Automatic install the module from the NuGet.org:

nuget install mazzy.Powershell.Chunks

or manual:

  • Download and unblock the latest .zip file.
  • Extract the .zip into your $PSModulePath, e.g. ~\Documents\WindowsPowerShell\Modules.
  • Ensure the extracted folder is named Powershell.Chunks.
  • Set an execution policy to RemoteSigned or Unrestricted to execute not signed modules Set-ExecutionPolicy RemoteSigned.
  • Run Import-Module Permutation.

Changelog

  • CHANGELOG.md
  • <https://github.com/mazzy-ax/Powershell.Chunks/releases>.

License

This project is released under the licensed under the MIT License.

<mazzy@mazzy.ru>

Release Notes

https://github.com/mazzy-ax/Powershell.Chunks/blob/master/CHANGELOG.md

Dependencies

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.0 327 8/16/2018