open-index/open-npm huggingface dataset:
npm package: @sosd/qs-constructor
Description: A convenient way to generate query strings for JSON:API.
Latest version: 1.0.2

# @sosd/qs-constructor

A convenient way to generate query strings for JSON:API.

## Install
```shell
yarn add @sosd/qs-constructor
```

## Usage

```typescript
import createQueryString from '@sosd/qs-constructor'

const queryString: string = createQueryString({ orderBy, language, id, where }: ResolverArgs, include: string | undefined)
```

### Interfaces

- #### `ResolverArgs`
  ```typescript
  interface ResolverArgs {
    language: string;
    id?: string | undefined;
    orderBy?: OrderBy | undefined;
    where?: Where[] | undefined;
  }
  ```

- #### `OrderBy`
  ```typescript
  interface OrderBy {
    path: string;
    direction: OrderByDirection;
  }
  ```

- #### `Where`
  ```typescript
  interface Where {
    path: string;
    operator: WhereOperators;
    value: string;
    group?: string;
  }
  ```

### Type & Enum

- #### `WhereOperators`
  ```typescript
  type WhereOperators =
    | '='
    | '<>'
    | '>'
    | '>='
    | '<'
    | '<='
    | 'STARTS_WITH'
    | 'CONTAINS'
    | 'ENDS_WITH'
    | 'IN'
    | 'NOT IN'
    | 'BETWEEN'
    | 'NOT BETWEEN'
    | 'IS NULL'
    | 'IS NOT NULL';
  ```

- #### `OrderByDirection`
  ```typescript
  enum OrderByDirection {
    ASC = 'ASC',
    DSC = 'DSC',
  }
  ```
npm package: @sosdocs/eslint-config
Description: ESLint shared configs for Sosdocs projects (Node and React)
Author: Maycow Douglas Marques de Melo
Latest version: 1.0.3

# @sosdocs/eslint-config

Configurações ESLint compartilhadas da **Sosdocs**, baseadas no novo formato [Flat Config](https://eslint.org/docs/latest/use/configure/configuration-files-new).

Este pacote fornece configurações para:

- 🟫 **Node.js** com suporte a TypeScript e Prettier
- ⚛️ **Next.js / React** com JSX, React Hooks, A11Y e Prettier (Tailwind-friendly)

---

## 📦 Instalação

O projeto deve ter **ESLint e @eslint/js instalados**.  
Este pacote cuidará do restante dos plugins internamente.

```bash
pnpm add -D eslint @eslint/js @sosdocs/eslint-config
```

## 🛠️ Como usar

Crie o arquivo eslint.config.js na raiz do seu projeto.

▶️ Para projetos Node.js
```js
import sosdocsConfig from '@sosdocs/eslint-config/node'
import { defineConfig } from 'eslint-define-config'

export default defineConfig([
	{
		files: ['**/*.{js,mjs,cjs,ts,mts,cts}'],
		extends: [sosdocsConfig],
	},
]);
```

▶️ Para projetos Next.js / React
```js
import sosdocsConfig from '@sosdocs/eslint-config/next'
import { defineConfig } from 'eslint-define-config'

export default defineConfig([
	{
		files: ['**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
		extends: [sosdocsConfig],
	},
]);
```

## 📜 Licença

MIT © Maycow Douglas Marques de Melo
npm package: @soshi1822/http-routing-server
Description: Node.js http server routing module
Author: soshi1822
Latest version: 1.0.18

# http-routing-server

Node.js http server routing module
 
## Description

An HTTP server written in Typescript that allows you to configure routing on Node.js.

## Usage

```:typescript
import { Server, Router } from 'http-routing-server';

const server = new Server();

// GET: /get
server.get('get', (req, res) => res.end('OK!'));

// GET: /get/:{userName}
server.get('get/:{userName}', (req, res) => res.end('Welcome to  ' + req.params.userName), { params: { userName: /\w+/ } });

// POST: /user
server.post(/^user\/$/, (req, res) => {
  // request body to json
  console.log(req.json());
  
  res.writeHead(204)
  res.end();
});


const router = new Router();

// GET: /user/get
router.get('get', (req, res) => res.end(req.url));

server.childRouter('user', router);

// http listen port 8800
server.listen(8800);
```


##  Install
`npm install https://github.com/soshi1822/http-routing-server`


##  Licence
[MIT](https://github.com/soshi1822/http-routing-server/blob/main/LICENSE)


##  Author
[soshi1822](https://github.com/soshi1822)
npm package: @sosoba/tar-stream
Description: Tar generator for nodejs
Author: Sławomir Osoba
Latest version: 1.0.0

# @sosoba/tar-stream

`@sosoba/tar-stream` is a streaming tar generator. It means you can easily createe tarballs without ever hitting the file system.

It implementes USTAR with additional support for pax extended headers (long and non-ascii file names).

[![License](https://img.shields.io/badge/license-MIT-blue.svg)](http://opensource.org/licenses/MIT)

## Usage

```sh
npm install @sosoba/tar-stream
```

To create a pack stream use `new Pack()` and call `pack.entry(header, [callback])` to add tar entries.

```js
import Pack from '@sosoba/tar-stream/pack';
import {createGzip} from 'node:zlib';

const pack = new Pack();

// we need two parallel tasks
await Promise.all([

	// first of them pipe the pack to oputputs
	pipeline( pack.outputStream, createGzip(), createWriteStream('out.tgz') ),
	
	// and second add a content to pack
	(async()=>{
	
		// add a file called my-test.txt with the content "Hello World!"
		await pack.addFile({ name: 'my-test.txt' }, Buffer.from('Hello World!'));

		// add a file called my-stream-test.txt from a stream
		const writable = await pack.addFile({ name: 'my-stream-test.txt', size: 11 });
		entry.write('hello');
		entry.write(' ');
		entry.write('world');
		entry.end();
		await once( entry, 'end' );

		// no more entries
		await pack.end();
	
	})(),

]);

```

## Headers

The header object using in `entry` should contain the following properties.
Most of these values can be found by stat'ing a file.

``` js
{
  name: 'path/to/this/entry.txt',
  size: 1314,        // entry size. defaults to 0
  mode: 0o644,       // entry mode. defaults to to 0o755 for dirs and 0o644 otherwise
  mtime: new Date(), // last modified date for entry. defaults to now.
  linkname: 'path',  // linked file name
  uid: 0,            // uid of entry owner. defaults to 0
  gid: 0,            // gid of entry owner. defaults to 0
  uname: 'maf',      // uname of entry owner. defaults to null
  gname: 'staff',    // gname of entry owner. defaults to null
  devmajor: 0,       // device major version. defaults to 0
  devminor: 0        // device minor version. defaults to 0
}
```

# License

MIT