open-index/open-npm huggingface dataset:
npm package: @mobiux-labs/form-core
Description: A core library for form handling in React applications.
Author: Mobiux Labs
Latest version: 0.0.7

# @mobiux-labs/form-core

This library was generated with [Nx](https://nx.dev).

## Running unit tests

Run `nx test @mobiux-labs/form-core` to execute the unit tests via [Vitest](https://vitest.dev/).
npm package: @mobiux-labs/form-field-select
Description: This library was generated with [Nx](https://nx.dev).
Author: Mobiux Labs
Latest version: 0.0.2

# @mobiux-labs/form-field-select

This library was generated with [Nx](https://nx.dev).

## Running unit tests

Run `nx test @mobiux-labs/form-field-select` to execute the unit tests via [Vitest](https://vitest.dev/).
npm package: @mobixtec/visse
Description: ``` yarn add @mobixtec/visse date-fns express express-validator ```
Author: MobixTec
Latest version: 1.1.14

Visse is a helper for Express and Mongoose.

## Para Instalar

```
yarn add @mobixtec/visse date-fns express express-validator
```

### ErrorHandler

Controller
```
import {ErrorHandler} from "@mobixtec/visse"

try{

}catch(e){
    if (error instanceof ErrorHandler) {
        next(error);
    } else {
        next(new ErrorHandler(500, error.message));
    }
}
```
Middleware para rotas
```
import {ErrorHandlerMiddleware} from "@mobixtec/visse"

app.use(Routes)
app.use(ErrorHandlerMiddleware)
```

### Sort para Mongoose

No queryString, crie uma variavel orderBy e passe os campos que precisam ser ordenados. ASC será só o campo, DESC coloca um "negativo" no inicio
```
http://localhost:3000?orderBy=name,-age
```
Import o sort no controller e pronto

```
import {sort} from "@mobixtec/visse"
import UserModel from "./models/user"

try{
  await UserModel.find().sort(sort.sortInFind(req.query.orderBy))
}catch(e){
  if (error instanceof ErrorHandler) {
      next(error);
  } else {
      next(new ErrorHandler(500, error.message));
  }
}
```

Caso você queira usar em aggregate, basta usar o sort.sortInAggregate conforme abaixo:

```
import {sort} from "@mobixtec/visse"
import UserModel from "./models/user"

try{
  await UserModel.aggregate([{
   
   $sort: sort.sortInAggregate(req.query.orderBy)
   
  }])
}catch(e){
  if (error instanceof ErrorHandler) {
      next(error);
  } else {
      next(new ErrorHandler(500, error.message));
  }
}
```
npm package: @mobizerg/nest-ghost-content-api
Description: Ghost Content Api integration module for Nest.js framework
Author: Mobizerg
Latest version: 0.1.3

<p align="center">
  <a href="http://nestjs.com/" target="blank">
    <img src="https://nestjs.com/img/logo_text.svg" width="320" alt="Nest Logo" />
  </a>
</p>

<p align="center">
  Ghost Content Api integration module for Nest.js framework.
</p>

### Installation

**Yarn**
```bash
yarn add @mobizerg/nest-ghost-content-api @tryghost/content-api
```

**NPM**
```bash
npm install @mobizerg/nest-ghost-content-api @tryghost/content-api --save
```

### Description
Ghost Content Api integration module for [Nest.js](https://github.com/nestjs/nest) based on the [Ghost Content Api](https://github.com/TryGhost/Ghost-SDK/tree/master/packages/content-api) package.

### Usage

Import the **GhostContentApiModule** in `app.module.ts`

```typescript
import { Module } from '@nestjs/common';
import { GhostContentApiModule } from '@mobizerg/nest-ghost-content-api';

@Module({
    imports: [
        GhostContentApiModule.register(options),
    ],
})
export class AppModule {}
```
With Async
```typescript
import { Module } from '@nestjs/common';
import { GhostContentApiModule } from '@mobizerg/nest-ghost-content-api';

@Module({
    imports: [
        GhostContentApiModule.registerAsync({
            imports: [ConfigModule],
            useExisting: GhostContentApiConfigService,
        }),
    ],
})
export class AppModule {}
```

Example config file (async)
```typescript
import { Injectable } from '@nestjs/common';
import { ConfigService } from './config.service';
import { GhostContentApiModuleOptions, GhostContentApiOptionsFactory } from '@mobizerg/nest-ghost-content-api';

@Injectable()
export class GhostContentApiConfigService implements GhostContentApiOptionsFactory {

  constructor(private readonly config: ConfigService) {}

  createGhostContentApiOptions(name?: string): GhostContentApiModuleOptions {
      
    return {
      name,
      url: 'https://demo.ghost.io',
      key: '22444f78447824223cefc48062',
      version: 'v3',
    };
  }
}
```

Importing inside services
```typescript
import { Injectable } from '@nestjs/common';
import { GhostContentApiService, PostResponse } from '@mobizerg/nest-ghost-content-api';

@Injectable()
export class BlogService {
    
      constructor(private readonly ghostContentApiService: GhostContentApiService) {}
                  
      async findPosts(): Promise<PostResponse> {
          return await this.ghostContentApiService.findPosts({
             filter: 'tag:demo',
             page: query.page, 
             limit: query.limit,
             order: {
               propertyName: 'created_at',
               sortOrder: Order.ASC,
             },
           });
      }           
}
```

### License

MIT
npm package: @mobizerg/nest-ioredis
Description: Ioredis integration module for nestjs framework
Author: Mobizerg
Latest version: 0.1.3

<p align="center">
  <a href="http://nestjs.com/" target="blank">
    <img src="https://nestjs.com/img/logo_text.svg" width="320" alt="Nest Logo" />
  </a>
</p>

<p align="center">
  A Ioredis integration module for Nest.js framework.
</p>

### Installation

**Yarn**
```bash
yarn add @mobizerg/nest-ioredis ioredis
yarn add @types/ioredis --dev
```

**NPM**
```bash
npm install @mobizerg/nest-ioredis ioredis --save
npm install @types/ioredis --save-dev
```

### Description
Redis integration module for [Nest.js](https://github.com/nestjs/nest) based on the [Ioredis](https://github.com/luin/ioredis) package.

### Usage

Import the **IoredisModule** in `app.module.ts`

```typescript
import { Module } from '@nestjs/common';
import { IoredisModule } from '@mobizerg/nest-ioredis';

@Module({
    imports: [
        IoredisModule.register(options);
    ],
})
export class AppModule {}
```
With Async
```typescript
import { Module } from '@nestjs/common';
import { IoredisModule } from '@mobizerg/nest-ioredis';

@Module({
    imports: [
        IoredisModule.registerAsync({
            imports: [ConfigModule],
            useExisting: IoredisConfigService,
        }),
    ],
})
export class AppModule {}
```

Example config file (async)
```typescript
import { Injectable } from '@nestjs/common';
import { ConfigService } from './config.service';
import { IoredisModuleOptions, IoredisOptionsFactory } from '@mobizerg/nest-ioredis';

@Injectable()
export class IoredisConfigService implements IoredisOptionsFactory {

  constructor(private readonly config: ConfigService) {}

  createIoredisOptions(name?: string): IoredisModuleOptions {
      
    return {
      name,
      host: this.config.redisHost,
      port: this.config.redisPort,
      db: this.config.redisDatabase,
      keyPrefix: this.config.redisPrefix,
    };
  }
}
```

Importing inside services
```typescript
import { Injectable } from '@nestjs/common';
import { InjectRedis } from '@mobizerg/nest-ioredis';
import { Redis } from 'ioredis';
import { serialize } from 'class-transformer';

@Injectable()
export class IoredisService {

  constructor(@InjectRedis(REDIS_CLIENT_NAME)
              private readonly client: Redis) {}

  async publish<T>(event: string, payload: T): Promise<number> {
    return await this.client.publish(event, serialize(payload));
  }
}
```

### License

MIT
npm package: @mobizerg/nest-nodemailer
Description: Nodemailer integration module for nestjs framework
Author: Mobizerg
Latest version: 1.1.0

<p align="center">
  <a href="http://nestjs.com/" target="blank">
    <img src="https://nestjs.com/img/logo_text.svg" width="320" alt="Nest Logo" />
  </a>
</p>

<p align="center">
  A Nodemailer integration module for Nest.js framework.
</p>

### Installation

**Yarn**
```bash
yarn add @mobizerg/nest-nodemailer nodemailer
yarn add @types/nodemailer --dev
```

**NPM**
```bash
npm install @mobizerg/nest-nodemailer nodemailer --save
npm install @types/nodemailer --save-dev
```

### Description
Mail integration module for [Nest.js](https://github.com/nestjs/nest) based on the [Nodemailer](https://nodemailer.com) package.

### Usage

Import the **NodemailerModule** in `app.module.ts`

```typescript
import { Module } from '@nestjs/common';
import { NodemailerModule } from '@mobizerg/nest-nodemailer';

@Module({
    imports: [
        NodemailerModule.register(options);
    ],
})
export class AppModule {}
```
With Async
```typescript
import { Module } from '@nestjs/common';
import { NodemailerModule } from '@mobizerg/nest-nodemailer';

@Module({
    imports: [
        NodemailerModule.registerAsync({
            imports: [ConfigModule],
            useExisting: NodemailerConfigService,
        }),
    ],
})
export class AppModule {}
```

Example config file (async)
```typescript
import { Injectable } from '@nestjs/common';
import { ConfigService } from './config.service';
import { NodemailerModuleOptions, NodemailerOptionsFactory } from '@mobizerg/nest-nodemailer';

@Injectable()
export class NodemailerConfigService implements NodemailerOptionsFactory {

  constructor(private readonly config: ConfigService) {}

  createNodemailerOptions(name?: string): NodemailerModuleOptions {
      
    return {
      name,
      transport: {
        host: this.config.mailHost,
        port: this.config.mailPort,
        secure: this.config.mailIsSecure,
        auth: {
          user: this.config.mailUsername,
          pass: this.config.mailPassword,
        },
        pool: true,
      },
      defaults: {
        pool: true,
        maxConnections: 2,
        from: `${this.config.mailFromName} <${this.config.mailFromAddress}>`,
      },
    };
  }
}
```

Importing inside services
```typescript
import { Injectable } from '@nestjs/common';
import { InjectTransport } from '@mobizerg/nest-nodemailer';
import { SentMessageInfo } from 'nodemailer';
import * as Mail from 'nodemailer/lib/mailer';

@Injectable()
export class MailService {
    
      constructor(@InjectTransport()
                  private readonly mailTransport: Mail) {}
                  
      async send(): Promise<SentMessageInfo> {
          return await this.mailTransport.sendMail(options);
      }           
}
```

### License

MIT
npm package: @moblimic/ui
Description: A basic UI kit for my personal sites
Author: Michael Craddock
Latest version: 1.2.0

A simple UI kit I built for myself when making simple react websites. Usually with Next.js.

The idea is to provide the user with some basic layout and common design which can be built upon if needed or just used as is.

This is very much a work in progress and will be very specific to the sites I am working on so I don't recommend you use this for your own sites. but feel free to fork it and maintain a copy for yourself.
I will be providing no maintenance or support beyond bugs that affect me or security issues.

```
yarn add @moblimic/ui
```

Temporary fix for NextJS

```
yarn add next-transpile-modules
```

In `next.config.js`

```
const withTM = require("next-transpile-modules")(["@moblimic/ui"]); // pass the modules you would like to see transpiled

module.exports = withTM();
```

### Global Styling and Reset

This will add the reset styles and provide some basic look and feel i use to get started prototyping out a site.

```
import GlobalStyles from '@moblimic/ui/globalStyles'

<>
    <GlobalStyles />
</>
```

## TODO

- [ ] Move generic component styles from generic.js to typography components
- [ ] Compiling step

## Contributing

Feel free to create a pull request for bugs and security updates. If you want to create new components for use in the ui kit then feel free as well. Changes to existing components are unlikely to be merged.

## Changelog

---

### 1.0.0

Staring to add the basic components im using etc. This version has no use. Just configuring the package

### 1.0.1

Tweaking the configuration etc and the way I publish the package

### 1.1.0

The first version with working components for use in my projects.

Set up docs folder for gh-pages

### 1.1.1

Adding props to avatar

# 1.1.2

Fixing P tag

# 1.2.0

Adding loader and a components