open-index/open-npm huggingface dataset:
npm package: @packageforge/permute
Description: Function to permute collections. * `permuteCombination` Iterate over combinations of elements in multiple arrays. * `permuteSample` Iterate over samples of an array in every combination. * `permuteOrder` Iterate over every order of elements in an array. *
Latest version: 0.0.3

# @packageforge/permute

Function to permute collections.
* `permuteCombination` Iterate over combinations of elements in multiple arrays.
* `permuteSample` Iterate over samples of an array in every combination.
* `permuteOrder` Iterate over every order of elements in an array.
* `permuteRange` Iterate over a numeric range and return an array of the range.


## `permuteCombination`
###### Iterate over combinations of elements in two or more arrays.
* Return `false` from the callback to exit the iteration.
```typescript
import { permuteCombination } from '@packageforge/permute';

permuteCombination(["Lear", "Fool"], [true, false], (name, state) => {
  console.log(name, state);
});
```
Output:
```
Lear, true
Lear, false
Fool, true
Fool, false
```

## `permuteSample`
###### Iterate over samples of an array in every combination.
* Return `false` from the callback to exit the iteration.
```typescript
import { permuteSample } from '@packageforge/permute';

permuteSample(["Lear", "Cordelia", "Goneril", "Regan", "Fool"], 2, names => {
  console.log(names.join(', '));
});
```
Output:
```
Lear, Cordelia
Lear, Goneril
Lear, Regan
Lear, Fool
Cordelia, Goneril
Cordelia, Regan
Cordelia, Fool
Goneril, Regan
Goneril, Fool
Regan, Fool
```

## `permuteOrder`
###### Iterate over every order of elements in an array.
* Return `false` from the callback to exit the iteration.
```typescript
import { permuteOrder } from '@packageforge/permute';

permuteOrder(["Cordelia", "Goneril", "Regan"], names => {
  console.log(names.join(', '));
});
```
Output:
```
Cordelia, Goneril, Regan
Cordelia, Regan, Goneril
Goneril, Cordelia, Regan
Goneril, Regan, Cordelia
Regan, Cordelia, Goneril
Regan, Goneril, Cordelia
```

## `permuteRange`
###### Iterate over a numeric range and return an array of the range.
* The callback parameter is optional.
* Return `false` from the callback to exit the iteration and truncate the returned range without the value (exclusive).
* Return `true` from the callback to exit the iteration and truncate the returned range with the value (inclusive).
```typescript
import { permuteRange } from '@packageforge/permute';

const rangeOne = permuteRange(3, index => {
  console.log(index);
});
console.log("rangeOne", rangeOne);

const rangeTwo = permuteRange(3, 3, index => {
  console.log(index);
});
console.log("rangeTwo", rangeTwo);
```
Output:
```
0
1
2
rangeOne, 0,1,2
3
4
5
rangeTwo, 3,4,5
```
npm package: @packageforge/template-projection
Description: This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 18.2.0.
Latest version: 0.0.6

# TemplateProjection

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 18.2.0.

## Code scaffolding

Run `ng generate component component-name --project template-projection` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project template-projection`.
> Note: Don't forget to add `--project template-projection` or else it will be added to the default project in your `angular.json` file. 

## Build

Run `ng build template-projection` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

After building your library with `ng build template-projection`, go to the dist folder `cd dist/template-projection` and run `npm publish`.

## Running unit tests

Run `ng test template-projection` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
npm package: @packageforge/uuid
Description: TypeScript functions to generate UUIDs, extract UUIDs, and compare UUIDs to see if they are equal.
Latest version: 0.0.3

# @packageforge/uuid

TypeScript functions to generate UUIDs, extract UUIDs, and compare UUIDs to see if they are equal.

Add the package to your project on the command line:
```
npm install @packageforge/uuid --save
```

Import the `generateUuid`, `extractUuid`, and `uuidsEqual` functions into your code file:
```typescript
import { generateUuid, uuidsEqual, extractUuid } from '@packageforge/uuid';
```

To generate a UUID:

```typescript
uuid = generateUuid();
```

To compare two UUIDs anywhere in strings:

```typescript
console.log(uuidsEqual('this lowercase uuid: 5c3cd7f2-979e-4b86-9123-11e6817271d2', 'this uppercase uuid: 5C3CD7F2-979E-4B86-9123-11E6817271D2')); 
// true, case insensitive comparison.

console.log(uuidsEqual('no uuid!', 'no uuid here either!')); 
// false, no uuids to compare
```

To extract a UUID from a string:

```typescript
uuid = extractUuid('this is a uppercase uuid: 5C3CD7F2-979E-4B86-9123-11E6817271D2');
console.log(uuid);
// 5C3CD7F2-979E-4B86-9123-11E6817271D2
// note was left in original case form

uuid = extractUuid('this is a mixed case uuid: 5C3CD7F2-979e-4B86-9123-11e6817271d2', false);
console.log(uuid);
// 5c3cd7f2-979e-4b86-9123-11e6817271d2
// note was converted to lowercase
```