open-index/open-npm huggingface dataset:
npm package: @megasquid/firestore-fetch-async
Description: This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 18.2.0.
Author: Adam Koncz
Latest version: 0.0.5

# FirestoreFetchAsync

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

## Build

Run `ng build firestore-fetch-async` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

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

## Running unit tests

Run `ng test firestore-fetch-async` 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: @megaswords/cache-manager
Description: ## Setup
Latest version: 0.1.4

# XMS API PAGE BUILDER

## Setup

### Add the dependency

```sh
yarn add @megaswords/cache-manager
```

### How to install module

#### Necessary Env variables

| Option                  | Description                                                     |
|-------------------------|-----------------------------------------------------------------|
| `REDIS_HOST`            | Redis Host (default: 127.0.0.1)                                 |
| `REDIS_PORT`            | Redis Port (default: 6379)                                      |
| `REDIS_PASSWORD`        | Redis Password (default: '')                                    |
| `REDIS_PREFIX`          | Redis prefix for cache key (default: '')                        |
| `REDIS_ENABLE`          | Set to 1 to enable Redis (default: disabled)                    |

#### Merge resolvers and mutations into your graphql api `src/graphql/resolvers.ts`

Example:

```js
import { GraphQLUpload } from 'apollo-upload-server';
import * as path from 'path';
import { mergeResolvers } from '@graphql-tools/merge';
import { loadFilesSync } from '@graphql-tools/load-files';
import { resolvers as CacheResolvers, mutations as CacheMutations } from '@megaswords/cache-manager';

const resolversArray = loadFilesSync(path.join(__dirname, './entities/**/resolver.ts'));
resolversArray.push(CacheResolvers);
const Queries = mergeResolvers(resolversArray);

const mutationsArray = loadFilesSync(path.join(__dirname, './entities/**/mutation.ts'));
mutationsArray.push(CacheMutations);
const Mutations = mergeResolvers(mutationsArray);

export const resolvers = {
  ...Queries,
  ...Mutations,
  Upload: GraphQLUpload,
};
```

#### Merge the graphql type into your api `src/graphql/type.ts`

Example:

```js
import * as path from 'path';
import { mergeTypeDefs } from '@graphql-tools/merge';
import { loadFilesSync } from '@graphql-tools/load-files';

import { types as CacheTypes } from '@megaswords/cache-manager';

const typesArray = loadFilesSync(path.join(__dirname, './entities/**/type.graphql'));
typesArray.push(CacheTypes);
export const typeDefs = mergeTypeDefs(typesArray);
```

### Available class

```js
// Graphql schema/resolver
export { resolvers, mutations, types, redis } from '@megaswords/cache-manager';
```