open-index/open-npm huggingface dataset:
npm package: @t8ngs/assert
Description: Assertion module for T8ngs framework, built on top of Chai.
Author: JefteCosta
Latest version: 1.0.0


# @t8ngs/assert
> Biblioteca de asserções baseada no Chai para o framework T8ngs

Uma biblioteca de asserções construída sobre [Chai.assert](https://www.chaijs.com/guide/styles/#assert), com melhorias e recursos extras como planejamento de asserções.

## Instalação

Instale o pacote via npm ou yarn:

```sh
npm i @t8ngs/assert
# ou
yarn add @t8ngs/assert
```

## Uso com @t8ngs/runner

Você pode usar o plugin de asserções junto ao runner do T8ngs:

```ts
import { assert } from '@t8ngs/assert'
import { configure } from '@t8ngs/runner'

configure({
	plugins: [assert()]
})
```

Após configurar, o contexto dos testes terá a propriedade `assert` disponível:

```ts
test('deve comparar objetos', ({ assert }) => {
	assert.deepEqual({ id: 1 }, { id: 1 })
})
```

## Recursos

- Baseado em Chai.assert
- Planejamento de asserções (asserte quantas devem ser executadas)
- Integração nativa com o runner @t8ngs/runner

## Exemplo de planejamento de asserções

```ts
test('deve executar 2 asserções', ({ assert }) => {
	assert.plan(2)
	assert.isTrue(true)
	assert.isFalse(false)
})
```

## Documentação

Consulte a documentação do Chai para detalhes das asserções disponíveis: https://www.chaijs.com/api/assert/

---

MIT © T8ngs
npm package: @t8ngs/expect
Description: Assertion package built on top of Jest expect
Author: Jefte Costa
Latest version: 1.1.0

# @t8ngs/expect
> Biblioteca de asserções baseada no jest-expect

[![github-actions-image]][github-actions-url] [![npm-image]][npm-url] [![license-image]][license-url] [![typescript-image]][typescript-url]

Uma biblioteca de asserções construída sobre o [jest-expect](https://jestjs.io/docs/expect).

## Documentação
Consulte a [documentação completa da API](https://t8ngs.dev/docs/plugins/expect).


## Instalação
Instale o pacote via npm:

```sh
npm i @t8ngs/expect
```

```sh
yarn add @t8ngs/expect
```

## Uso
Você pode utilizar o pacote de asserções com o @t8ngs/runner da seguinte forma:


```ts
import { expect } from '@t8ngs/expect'
import { configure } from '@t8ngs/runner'

configure({
  plugins: [expect()]
})
```
Após configurar, você terá acesso à propriedade expect no contexto do teste:

```ts
test('test title', ({ expect }) => {
  expect(100).toBeWithinRange(90, 110)
})
```

[github-actions-url]: https://github.com/t8ngs/expect/actions/workflows/checks.yml "github-actions"

[github-actions-image]: https://img.shields.io/github/actions/workflow/status/t8ngs/expect/checks.yml?style=for-the-badge

[npm-image]: https://img.shields.io/npm/v/@t8ngs/expect.svg?style=for-the-badge&logo=npm
[npm-url]: https://npmjs.org/package/@t8ngs/expect "npm"

[license-image]: https://img.shields.io/npm/l/@t8ngs/expect?color=blueviolet&style=for-the-badge
[license-url]: LICENSE.md "license"

[typescript-image]: https://img.shields.io/badge/Typescript-294E80.svg?style=for-the-badge&logo=typescript
[typescript-url]:  "typescript"
npm package: @t8ngs/fs
Description: File system plugin for writing assertions for files and directories
Author: JefteCosta
Latest version: 1.0.0

# @t8ngs/fs

Este projeto é uma biblioteca de manipulação de sistema de arquivos para Node.js, inspirada no estilo e na simplicidade do framework Japa.

## Instalação

Para instalar o pacote, execute:

```bash
npm install @t8ngs/fs
```

## Uso

Importe e utilize as funções principais:

```typescript
import { assertDir, assertFile } from '@t8ngs/fs';

// Exemplo de uso
assertDir('caminho/do/diretorio');
assertFile('caminho/do/arquivo');
```

## Baseado no Japa

Este projeto foi desenvolvido inspirado no Japa, focando em simplicidade, clareza e facilidade de uso para testes e manipulação de arquivos.

## Documentação

Consulte o arquivo `agent.md` para instruções detalhadas de uso e exemplos avançados.

## Licença

MIT

[gh-workflow-image]: https://img.shields.io/github/actions/workflow/status/t8ngs/fs/checks.yml?style=for-the-badge
[gh-workflow-url]: https://github.com/t8ngs/fs/actions/workflows/checks.yml 'Github action'
[npm-image]: https://img.shields.io/npm/v/@t8ngs/fs/latest.svg?style=for-the-badge&logo=npm
[npm-url]: https://www.npmjs.com/package/@t8ngs/fs/v/latest 'npm'
[typescript-image]: https://img.shields.io/badge/Typescript-294E80.svg?style=for-the-badge&logo=typescript
[license-url]: LICENSE
[license-image]: https://img.shields.io/github/license/t8ngs/fs?style=for-the-badge
npm package: @t_rik/next-i18n-routes
Description: A middleware (+ utility tools) for having fully internationalized routes in your Next.js apps.
Author: Tomáš Uhrík
Latest version: 0.1.1

# Next-i18n-routes

A middleware (+ utility tools) for having fully internationalized routes in your Next.js apps.

## How to use
1. Prepare a custom server: https://nextjs.org/docs/advanced-features/custom-server
1. Prepare a your routes catalog in compliance with [Next-i18n-routes routing convention](./docs/ROUING_CONVENTION.md) 
1. Set up `NextI18nRoutesMiddleware` such as in the example below:
```
    const express = require("express");
    const next = require("next");
    const getNextI18nRoutesMiddleware = require("npm-ts-package-test").getNextI18nRoutesMiddleware;
    const routes = require('./routes').routes;

    const app = next({ isInDevMode });
    
    app.prepare().then(() => {
      const server = express();
      
      server.use(
        getNextI18nRoutesMiddleware(
            server,
            app,
            { 
                supportedLangs: ['en', 'cs'],
                routes: routes,
                shouldHandleEmptyRoute: true
            }
        )
        );
    
      server.listen(process.env.PORT || 3000);
    });
```
npm package: @ta-kiyama/imgen
Description: immutable generator generator for node.js
Author: ta-kiyama
Latest version: 1.1.0

[![npm version](https://badge.fury.io/js/%40ta-kiyama%2Fimgen.svg)](https://badge.fury.io/js/%40ta-kiyama%2Fimgen)

# imgen
immutable generator generator for node.js

# install

`npm install @ta-kiyama/imgen`

# sample

## sync generator function

```js
import imgen from "@ta-kiyama/imgen";

const itr = imgen(function* (arg) {
  const result = yield arg;
  yield result * 2;
  yield 3;
});

itr.next(1); // { value: 1, done: false }

itr.next(1); // { value: 1, done: false }

itr
  .next(1)
  .next(2); // { value: 4, done: false }

itr
  .next(1)
  .next(2)
  .next(); // { value: 3, done: false }

itr
  .next(1)
  .next(2)
  .next()
  .next(); // { value: undefined, done: true }

itr.next(1); // { value: 1, done: false }
```

## async generator function

```js
import imgen from "@ta-kiyama/imgen";

const itr = imgen(async function* (arg) {
  const result = yield arg;
  await new Promise((r) => setTimeout(r, 1000));
  yield result * 2;
  yield 3;
});

await itr
  .next(1)
  .toPromise(); // { value: 1, done: false }

await itr.next(1); // { value: 1, done: false }

await itr
  .next(1)
  .next(2)
  .toPromise(); // { value: 4, done: false } ※after 1sec

itr
  .next(1)
  .next(2)
  .next()
  .toPromise(); // { value: 3, done: false } ※after 1sec

itr
  .next(1)
  .next(2)
  .next()
  .next()
  .toPromise(); // { value: undefined, done: true } ※after 1sec

itr
  .next(1)
  .toPromise(); // { value: 1, done: false }
```
npm package: @ta-shadowy/ng-validator
Description: This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 16.2.6.
Author: Tuyen Nguyen
Latest version: 0.0.4

# TaNgValidator

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

## Code scaffolding

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

## Build

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

## Publishing

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

## Running unit tests

Run `ng test ta-ng-validator` 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.
npm package: @ta-shadowy/ngxs-to-form
Description: This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 16.2.6.
Author: Tuyen Nguyen
Latest version: 0.0.6

# TaNgxsToForm

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

## Code scaffolding

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

## Build

Run `ng build ta-ngxs-to-form` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

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

## Running unit tests

Run `ng test ta-ngxs-to-form` 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.
npm package: @taban-framework/core
Description: A modular Express.js framework inspired by Laravel
Author: farzadblack
Latest version: 1.0.0

# Taban Framework

A modular Express.js framework inspired by Laravel for building scalable APIs.

## Installation

```bash
npm install @taban-framework/core
```
## Setup

1.  Initialize the project structure:
    ```bash
    npx taban init
    ```

2.  Create a `.env` file with your database configuration:
    ```env
    DB_USER=your_user
    DB_PASSWORD=your_password
    DB_HOST=localhost
    DB_PORT=5432
    DB_NAME=your_database
    PORT=3000
    ```

3.  Create a `routes` folder and add your routes (e.g., `routes/router.js`):
    ```javascript
    const express = require('express');
    const config = require('taban-framework/configs/app');
    const router = express.Router();

    const APIResponseService = require(config.services.apiResponse);

    router.get('/', (req, res) => {
        APIResponseService.success(res, { version: '1.0.0' }, 'Welcome to Taban Framework');
    });

    module.exports = router;
    ```

4.  Run migrations:
    ```bash
    npx taban migrate
    ```

5.  Start the server:
    ```bash
    npx taban serve
    ```


# Commands
- `taban serve`: Start the Express server.
- `taban migrate`: Run Prisma migrations.
- `taban seed`: Run database seeders.
- `taban test-db`: Test database connection.

# Directory Structure
```tree-view
taban-framework/
├── configs/
│   ├── app.js
│   ├── routes.js
│   ├── scripts.js
│   ├── services.js
│   ├── models.js
│   ├── seeds.js
│   └── database.js
│
├── database/
│   ├── prisma/
│   │   ├── migrations/
│   │   └── schema.prisma
│   │
│   ├── seeds/
│   │   └── seeder.js
│
├── middlewares/
│
├── models/
│
├── modules/
│
├── node_modules/
│
├── routes/
│   ├── router.js
│   └── test.js
│
├── scripts/
│   └── combine-prisma.js
│
├── services/
│   └── api-response.js
│
├── .env
├── .env.example
├── cli.js
├── package-lock.json
└── package.json
```
# License:
### MIT