open-index/open-npm huggingface dataset:
npm package: @ptdevtemp/form-jobs
Description: FormJobs component description
Latest version: 1.0.2

# FormJobs

FormJobs component description

## Scripts

Compiles `test component` into `dist` folder as a `cjs2` component and ready to be shared

```console
yarn build
```

Continuously watch for changes and compiles `test component` into `dist` folder as a `cjs2` component and ready to be shared

```console
yarn build:watch
```

Run webpack-dev-server on port `https://localhost:3000`

```console
yarn dev
```

Run `dev` and `build:watch` script on parallel

```console
yarn start
```

Dev and preview react component documentation

Run docz on port `https://localhost:5000`

```console
yarn docz:dev
```

For component testing

```console
yarn test
```

```console
yarn test:watch
```

```console
yarn test:coverage
```

## Folders structure description

### example

```console
+-- example
|   +-- src
|      +-- App.tsx // where the compiled component is loaded for dev purpose
|      +-- index.html
|      +-- index.tsx
```

### src

```console
+-- src
|   +-- index.mdx // docz for react component documentation
|   +-- index.tsx // react component code
```

### test

```console
+-- test
|   +-- index.test.tsx
|   +-- setupTest.ts // enzyme adapter setup
|   +-- testUtils.ts // functions for test
```
npm package: @ptdevtemp/form-slidein-container
Description: FormSliderContainer component description
Latest version: 1.0.11

# FormSliderContainer

FormSliderContainer component description

## Scripts

Compiles `test component` into `dist` folder as a `cjs2` component and ready to be shared

```console
yarn build
```

Continuously watch for changes and compiles `test component` into `dist` folder as a `cjs2` component and ready to be shared

```console
yarn build:watch
```

Run webpack-dev-server on port `https://localhost:3000`

```console
yarn dev
```

Run `dev` and `build:watch` script on parallel

```console
yarn start
```

Dev and preview react component documentation

Run docz on port `https://localhost:5000`

```console
yarn docz:dev
```

For component testing

```console
yarn test
```

```console
yarn test:watch
```

```console
yarn test:coverage
```

## Folders structure description

### example

```console
+-- example
|   +-- src
|      +-- App.tsx // where the compiled component is loaded for dev purpose
|      +-- index.html
|      +-- index.tsx
```

### src

```console
+-- src
|   +-- index.mdx // docz for react component documentation
|   +-- index.tsx // react component code
```

### test

```console
+-- test
|   +-- index.test.tsx
|   +-- setupTest.ts // enzyme adapter setup
|   +-- testUtils.ts // functions for test
```
npm package: @ptdgrp/zstd-wasm
Description: 将 Rust 的 `zstd-rs` 编译为 WebAssembly，供 Deno 使用。
Latest version: 0.13.3-zstd.1.5.7.wasm.1

# zstd-wasm

将 Rust 的 `zstd-rs` 编译为 WebAssembly，供 Deno 使用。

导出两个函数：

- `compress(input: Uint8Array, level: number): Uint8Array`
- `decompress(input: Uint8Array): Uint8Array`
npm package: @ptenn/formatting
Description: ## Installation
Latest version: 0.0.0

# @ptenn/formatting

## Installation

```shell
yarn add @ptenn/formatting
```

## Usage

### Email Formatting

```typescript
import { normalizeEmail } from '@ptenn/formatting';

const formatted = normalizeEmail('email.period@gmail.com');

console.log(formatted); // emailperiod@gmail.com
```

### Object Formatting

```typescript
import { camelizeKeys, modifiedSnakeCase, snakeifyKeys } from '@ptenn/formatting';

const toCamelized = camelizeKeys({
	first_value: 'data',
});

console.log(Object.keys(toCamelized)); // [ 'firstValue' ]

const toModifiedSnakeCase = modifiedSnakeCase('simpleString');

console.log(toModifiedSnakeCase); // simple_test

const toSnakeifyKeys = snakeifyKeys({
	firstValue: 'data',
});

console.log(Object.keys(toSnakeifyKeys)); // [ 'first_value' ]
```
npm package: @ptenn/hapi-server
Description: This library was generated with [Nx](https://nx.dev).
Latest version: 0.0.1

# hapi-server

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


## Running unit tests

Run `nx test hapi-server` to execute the unit tests via [Jest](https://jestjs.io).


## Running lint

Run `nx lint hapi-server` to execute the lint via [ESLint](https://eslint.org/).
npm package: @ptenn/sequelize
Description: ## Installation
Latest version: 0.0.2

# @ptenn/sequelize

## Installation

```shell
yarn add @ptenn/sequelize
```

## Usage

### Creating the Connection
```typescript
// connection.ts
import { Connection } from '@ptenn/sequelize';

const connection = new Connection({
	dialect: 'sqlite',
	storage: ':memory:',
	logging: false,
});

export { connection };
```

### Creating Models

```typescript
import { ModelAttributes } from './model';
import { CreationOptional, DATE, Sequelize, STRING } from 'sequelize';

export interface UserAttributes extends ModelAttributes {
	id: CreationOptional<number>;
	username: string;
	password: string;
	createdAt: CreationOptional<Date>;
	updatedAt: CreationOptional<Date>;
}

export class UserModel extends Model<UserAttributes> {
	constructor(sequelize: Sequelize) {
		super(sequelize, 'users', {
			username: {
				type: STRING,
				unique: true,
				allowNull: false,
			},
			password: {
				type: STRING,
				allowNull: false,
				validate: {
					len: [8, 255],
				},
			},
			createdAt: DATE,
			updatedAt: DATE,
		});
	}
}
```

### Setting up the database

```typescript
import { Database } from '@ptenn/sequelize';
import { connection } from './connection';
import { UserModel } from './models/user';

type DatabaseShape = {
    users: User,
};

const database = new Database<DatabaseShape>(connection);

database.loadThenSync((sequelize, defineModel) => {
	/* eslint-disable @typescript-eslint/no-unused-vars */
	const userModel = defineModel<UserModel>(new UserModel(sequelize));
	/* eslint-enable @typescript-eslint/no-unused-vars */
});

export { database };
```