open-index/open-npm huggingface dataset:
npm package: @rocketloop/ng-rocketparts
Description: Angular components that get things done
Author: Florian Reifschneider
Latest version: 1.1.0

# Rocket Parts

[![Build Status](https://www.travis-ci.com/Rocketloop/ng-rocketparts.svg?branch=master)](https://www.travis-ci.com/Rocketloop/ng-rocketparts)
[![npm version](https://badge.fury.io/js/%40rocketloop%2Fng-rocketparts.svg)](https://www.npmjs.com/@rocketloop/ng-rocketparts)

A collection of useful and battle-tested single-prupose Angular components that get things done. 

## Getting Started

Rocket Parts can be installed using NPM:

```
npm install --save @rocketloop/ng-rocketparts
```

Once installed you need to import our main module:

```
import { NgRocketPartsModule } from '@rocketloop/ng-rocketparts';

@NgModule({
  ...
  imports: [ NgRocketPartsModule, ... ],
  ...
})
export class YourAppModule {
	...
}
```

## Roadmap

- [ ] Number Input Component
- [ ] Dynamic Table Component
npm package: @rocketmakers/nebula-core
Description: Core library shared between nebula packages
Author: Jonny
Latest version: 0.0.11

# Nebula Core

A series of core utilities used across the Nebula project.

<!-- toc -->
* [Documentation](#documentation)
<!-- tocstop -->

## Documentation

A link to the full documentation can be found [here](https://gitlab.com/rocketmakers/platform/nebula)
npm package: @rocketmakers/shell
Description: The suite of `@rocketmakers/shell-*` packages provides support for running common commands in a shell, using TypeScript.
Latest version: 0.2.1

The suite of `@rocketmakers/shell-*` packages provides support for running common commands in a shell, using TypeScript.

## Overview

### @rocketmakers/shell

All scripts will need to use `@rocketmakers/shell` package, which provides the core features:

- Parsing command line arguments
- Prerequisite checking for required commands in the environment
- Logging utilities
- An abstraction for running a command in a shell, with options for how the output is handled
  - The executor can be used from the `@rocketmakers/shell-executor` package, or a custom implementation could be implemented if needed

### @rocketmakers/shell-executor

This contains a default implementation of the `IShellExecutor` interface.

### @rocketmakers/shell-\* packages

The majority of `@rocketmakers/shell-*` packages contain commands relating to a shell executable. For example, `@rocketmakers/shell-sops` contains commands for working with [sops](https://github.com/getsops/sops).

## Quick start

This shows a typical script using `@rocketmakers/shell`:

1. Create an `IShellExecutor`
2. Parse arguments
3. Set a default log level
4. Perform a prerequisites check
5. Execute commands

```typescript
import { LoggerLevel } from '@rocketmakers/log';
import * as Args from '@rocketmakers/shell/args';
import { createLogger, setDefaultLoggerLevel } from '@rocketmakers/shell/logger';
import * as Prerequisites from '@rocketmakers/shell/prerequisites';
import { ShellExecutor } from '@rocketmakers/shell-executor';

// Any loggers created via createLogger will respect the level set by seDefaultLoggerLevel
const logger = createLogger('hello-world');

// We need an instance of IShellExecutor to run commands
const shell = new ShellExecutor();

async function run() {
  const args = await Args.match({
    // Example of matching an optional log level argument, defaulting to an environment variable
    log: Args.single({
      description: 'The log level',
      shortName: 'l',
      defaultValue: process.env.LOG_LEVEL || 'info',
      validValues: ['trace', 'debug', 'info', 'warn', 'error', 'fatal'],
    }),
  });

  if (args?.log) {
    setDefaultLoggerLevel(args.log as LoggerLevel);
  }

  // Args.match prints the docs for each arg if args couldn't be parsed so this is a useful pattern for supporting --help
  if (!args) {
    if (process.argv.includes('--help')) {
      return;
    }

    throw new Error('There was a problem parsing the arguments');
  }

  // This will throw if the environment does not contain the expected commands
  await Prerequisites.check(shell);

  await shell.exec(['echo', '"Hello World!"']);
}

run()
  .then(() => logger.info('🚀 Done 🚀'))
  .catch(err => {
    logger.fatal(err);
    process.exit(-1);
  });
```
npm package: @rocketmakers/shell-deploy-docs
Description: This package provides a way to deploy documentation files to a Google Cloud Storage Bucket, either via typescript, or a CLI.
Latest version: 0.2.1

## Overview

This package provides a way to deploy documentation files to a Google Cloud Storage Bucket, either via typescript, or a CLI.

### From code

```typescript
import { deployDocs } from '@rocketmakers/shell-deploy-docs';
import { ShellExecutor } from '@rocketmakers/shell-executor';
import { join } from 'path';

const shell = new ShellExecutor();

await deployDocs(shell, {
  packageName: 'some-package,
  pathToDocs: join('_docs', '_site'),
  version: '1.2.3',
});
```

### From CLI

```bash
pnpm exec rocketmakers-deploy-docs -d=_/docs/_site -p=some-package -v=1.2.3 -l=trace

# Run the following to see expected args and valid values
pnpm exec rocketmakers-deploy-docs --help
```
npm package: @rocketmakers/shell-executor
Description: This contains a default implementation of the `IShellExecutor` interface.
Latest version: 0.2.1

## Overview

This contains a default implementation of the `IShellExecutor` interface.

### Basic use

```typescript
import { ShellExecutor } from '@rocketmakers/shell-executor';

const shell = new ShellExecutor();

await shell.exec(['pwd']);
```

### Providing default options

```typescript
import { ShellExecutor } from '@rocketmakers/shell-executor';

// Run all commands in some-directory by default
const someDirShell = new ShellExecutor({ cwd: './some-directory' });

const someDirPath = await someDirShell.exec(['pwd']);

// Default options can be overridden
const rootPath = await someDirShell.exec(['pwd'], { cwd: '/' });
```
npm package: @rocketmakers/shell-gcloud
Description: Contains functions for working with [gcloud](https://cloud.google.com/sdk/gcloud) and [gsutil](https://cloud.google.com/storage/docs/gsutil).
Latest version: 0.2.1

## Overview

Contains functions for working with [gcloud](https://cloud.google.com/sdk/gcloud) and [gsutil](https://cloud.google.com/storage/docs/gsutil).
npm package: @rocketmakers/storage
Description: This package provides a convenient way to interact with local storage for your development or local environment. This package allows you to perform various operations on files stored locally, such as copying, deleting, reading, and creating.
Latest version: 0.4.2

# @rocketmakers/storage - Local

This package provides a convenient way to interact with local storage for your development or local environment. This package allows you to perform various operations on files stored locally, such as copying, deleting, reading, and creating.

- [rocketmakers-storage](#rocketmakers-storage)
  - [Installation](#Installation)
  - [LocalStorage](#LocalStorage)
    - [Usage](#Usage)
  - [AsyncFs](#AsyncFs)
    - [Usage](#Usage)

## Installation

To use this package, you can install it via npm:

```bash
npm install @rocketmakers/storage
```

```bash
yarn add @rocketmakers/storage
```

```bash
pnpm add @rocketmakers/storage
```
## LocalStorage

### Usage

Here's an example of how you can use the `LocalStorage` class in your Node.js application:

```typescript
import { LocalStorage, ILocalStorageConfig } from '@rocketmakers/storage';

// Configuration for local storage
const localStorageConfig: ILocalStorageConfig = {
  local: {
    rootPath: '/path/to/local/storage',
  },
};

// Create an instance of LocalStorage
const localStorage = new LocalStorage(localStorageConfig);

// Example: Validate storage
const result = await localStorage.validate();
console.log('Storage validation result:', result);

// Example: Copy a file
const fromFilePath = '/path/to/source/file.txt';
const toFilePath = '/path/to/destination/file.txt';
const success = await localStorage.fileCopy(fromFilePath, toFilePath);
console.log('File copy result:', success);

// ... Other operations (delete, read, create, etc.)
```

## AsyncFs

This package also gives you access to `AsyncFs`. `AsyncFs` is a TypeScript module that provides asynchronous wrappers for common file system operations. It is designed to work with the Node.js fs module and is particularly useful for handling file-related tasks in an asynchronous, non-blocking manner.

### Usage

```typescript
import { AsyncFs } from '@rocketmakers/storage';

// Example: Check if a file exists asynchronously
const filePath = 'path/to/file.txt';
const fileExists = await AsyncFs.existsAsync(filePath);
console.log(`File ${filePath} exists: ${fileExists}`);

// Example: Read the content of a file asynchronously
const fileContent = await AsyncFs.readFileAsync(filePath);
console.log(`Content of ${filePath}: ${fileContent}`);

```
npm package: @rocketmakers/storage-aws
Description: This package provides a convenient interface for interacting with AWS S3 storage. It wraps the AWS SDK, offering simplified methods for common storage operations.
Latest version: 0.4.2

# @rocketmakers/storage-aws - AWS

This package provides a convenient interface for interacting with AWS S3 storage. It wraps the AWS SDK, offering simplified methods for common storage operations.

- [@rocketmakers/storage-aws - AWS](#rocketmakersstorage-aws---aws)
  - [Installation](#installation)
  - [Usage](#usage)
    - [Supabase](#supabase)


## Installation

To use this package, install it via npm:

```bash
npm install @rocketmakers/storage-aws
```

```bash
yarn add @rocketmakers/storage-aws
```

```bash
pnpm add @rocketmakers/storage-aws
```

## Usage

Below is an example of how to use the `S3Storage` class in your application:

```typescript
import { S3Storage, IAwsConfig, IS3StorageConfig } from '@rocketmakers/storage-aws';

// Configuration for aws
const awsConfig: IAwsConfig = {
  region: 'your-aws-region',
  accessKeyId: 'your-access-key-id',
  secretAccessKey: 'your-secret-access-key',
};

// Storage configuration
const storageConfig: IS3StorageConfig = {
  aws: awsConfig,
  bucketName: 'your-s3-bucket-name',
};

// Create an instance of S3Storage
const s3Storage = new S3Storage(storageConfig);

// Example: Validate storage
const validationResult = await s3Storage.validate();
console.log('Storage validation result:', validationResult);

// Example: Copy a file
const fromFilePath = 'path/to/source/file.txt';
const toFilePath = 'path/to/destination/file.txt';
const copyResult = await s3Storage.fileCopy(fromFilePath, toFilePath);
console.log('File copy result:', copyResult);

// ... Other operations (delete, read, create, etc.)
```

### Supabase

If you are wanting to connect to the Supabase Storage bucket via AWS S3, then you can do so with the following config

```typescript
/ Configuration for aws
const awsConfig: IAwsConfig = {
  region: 'your-aws-region',
  accessKeyId: 'your-access-key-id',
  secretAccessKey: 'your-secret-access-key',
  endpoint: 'https://<<SUPABASE_PROJECT_REF>>.supabase.co/storage/v1/s3',
  forcePathStyle: true,
};

// Storage configuration
const storageConfig: IS3StorageConfig = {
  aws: awsConfig,
  bucketName: 'your-s3-bucket-name',
};
```

You will need to setup access following the [supabase instructions](https://supabase.com/docs/guides/storage/s3/authentication).
npm package: @rocketmakers/storage-azure
Description: This package facilitates interaction with Azure Storage. The package includes an `AzureStorage` class that implements the `IStorage` interface, providing a seamless way to perform various operations on files stored in Azure Storage. The class supports fun
Latest version: 0.4.2

# @rocketmakers/storage-azure

This package facilitates interaction with Azure Storage. The package includes an `AzureStorage` class that implements the `IStorage` interface, providing a seamless way to perform various operations on files stored in Azure Storage. The class supports functionalities such as copying, deleting, reading, creating files, and handling chunked uploads, making it a powerful tool for managing your storage needs.

- [rocketmakers-storage](#rocketmakers-storage)
    - [Installation](#Installation)
    - [Usage](#Usage)

## Installation

To use this package, install it via npm:

```bash
npm install @rocketmakers/storage-azure
```

```bash
yarn add @rocketmakers/storage-azure
```

```bash
pnpm add @rocketmakers/storage-azure
```

## Usage

Below is an example of how to use the `AzureStorage` class in your Node.js application:

```typescript
import { AzureStorage, IAzureConfig, IAzureStorageConfig } from '@rocketmakers/storage-azure';

// Configuration for Azure Storage
const azureConfig: IAzureConfig = {
  connectionString: 'your-azure-connection-string',
};

// Storage configuration
const storageConfig: IAzureStorageConfig = {
  azure: azureConfig,
  containerName: 'your-container-name',
};

// Create an instance of AzureStorage
const azureStorage = new AzureStorage(storageConfig);

// Example: Validate storage
const validationResult = await azureStorage.validate();
console.log('Storage validation result:', validationResult);

// Example: Copy a file
const fromFilePath = 'source-file.txt';
const toFilePath = 'destination-file.txt';
const copyResult = await azureStorage.fileCopy(fromFilePath, toFilePath);
console.log('File copy result:', copyResult);

// ... Other operations (delete, read, create, etc.)
```
npm package: @rocketmakers/storage-gcs
Description: This package facilitates interaction with Google Cloud Storage. The package includes a `GcsStorage` class that implements the `IStorage` interface, providing a seamless way to perform various operations on files stored in Google Cloud Storage. The class s
Latest version: 0.4.2

# rocketmakers-storage-gcs - Google cloud storage

This package facilitates interaction with Google Cloud Storage. The package includes a `GcsStorage` class that implements the `IStorage` interface, providing a seamless way to perform various operations on files stored in Google Cloud Storage. The class supports functionalities such as copying, deleting, reading, and creating files, making it a powerful tool for managing your storage needs.

- [rocketmakers-storage](#rocketmakers-storage)
	- [Installation](#Installation)
	- [Usage](#Usage)


## Installation

To use this package, install it via npm:

```bash
npm install @rocketmakers/storage-gcs
```

```bash
yarn add @rocketmakers/storage-gcs
```

```bash
pnpm add @rocketmakers/storage-gcs
```

## Usage

Below is an example of how to use the `GcsStorage` class in your application:

```javascript
import { GcsStorage, IGcsConfig, IGcsStorageConfig } from '@rocketmakers/storage-gcs';

// Configuration for Google Cloud Storage
const gcsConfig: IGcsConfig = {
  projectId: 'your-project-id',
  credentials: {
    client_email: 'your-client-email',
    private_key: 'your-private-key',
  },
};

// Storage configuration
const storageConfig: IGcsStorageConfig = {
  gcs: gcsConfig,
  bucketName: 'your-bucket-name',
};

// Create an instance of GcsStorage
const gcsStorage = new GcsStorage(storageConfig);

// Example: Validate storage
const validationResult = await gcsStorage.validate();
console.log('Storage validation result:', validationResult);

// Example: Copy a file
const fromFilePath = 'path/to/source/file.txt';
const toFilePath = 'path/to/destination/file.txt';
const copyResult = await gcsStorage.fileCopy(fromFilePath, toFilePath);
console.log('File copy result:', copyResult);

// ... Other operations (delete, read, create, etc.)
```
npm package: @rocketmark/angular
Description: Astro Web Components Angular Wrapper
Latest version: 7.14.0

# AngularLib

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.

## Code scaffolding

Run `ng generate component component-name --project angular-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project angular-lib`.
> Note: Don't forget to add `--project angular-lib` or else it will be added to the default project in your `angular.json` file. 

## Build

Run `ng build angular-lib` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

After building your library with `ng build angular-lib`, go to the dist folder `cd dist/angular-lib` and run `npm publish`.

## Running unit tests

Run `ng test angular-lib` 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.io/cli) page.