open-index/open-npm huggingface dataset:
npm package: @jihyunlab/create-typescript-app
Description: JihyunLab Create typescript app.
Author: JihyunLab
Latest version: 1.1.11

# @jihyunlab/create-typescript-app

[![Version](https://img.shields.io/npm/v/@jihyunlab/create-typescript-app.svg?style=flat-square)](https://www.npmjs.com/package/@jihyunlab/create-typescript-app?activeTab=versions) [![Downloads](https://img.shields.io/npm/dt/@jihyunlab/create-typescript-app.svg?style=flat-square)](https://www.npmjs.com/package/@jihyunlab/create-typescript-app) [![Last commit](https://img.shields.io/github/last-commit/jihyunlab/create-typescript-app.svg?style=flat-square)](https://github.com/jihyunlab/create-typescript-app/graphs/commit-activity) [![License](https://img.shields.io/github/license/jihyunlab/create-typescript-app.svg?style=flat-square)](https://github.com/jihyunlab/create-typescript-app/blob/master/LICENSE) [![Linter](https://img.shields.io/badge/linter-eslint-blue?style=flat-square)](https://eslint.org) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\
[![Build](https://github.com/jihyunlab/create-typescript-app/actions/workflows/build.yml/badge.svg)](https://github.com/jihyunlab/create-typescript-app/actions/workflows/build.yml) [![Lint](https://github.com/jihyunlab/create-typescript-app/actions/workflows/lint.yml/badge.svg)](https://github.com/jihyunlab/create-typescript-app/actions/workflows/lint.yml) [![Prettier](https://github.com/jihyunlab/create-typescript-app/actions/workflows/prettier.yml/badge.svg)](https://github.com/jihyunlab/create-typescript-app/actions/workflows/prettier.yml) [![codecov](https://codecov.io/gh/jihyunlab/create-typescript-app/graph/badge.svg?token=FGE7E4DVHA)](https://codecov.io/gh/jihyunlab/create-typescript-app)

@jihyunlab/create-typescript-app provides TypeScript templates with ESLint, Prettier, Jest, and GitHub workflows.

You can quickly configure your TypeScript development environment using @jihyunlab/create-typescript-app.

## Usage

Run @jihyunlab/create-typescript-app in your working folder.

```bash
npx @jihyunlab/create-typescript-app@latest
```

Enter the project name.

```bash
√ What is your project name? ... my-app
```

## Credits

Authored and maintained by JihyunLab <<info@jihyunlab.com>>

## License

Open source [licensed as MIT](https://github.com/jihyunlab/create-typescript-app/blob/master/LICENSE).
npm package: @jihyunlab/eslint-config
Description: JihyunLab ESLint config for TypeScript.
Author: JihyunLab
Latest version: 2.1.1

# @jihyunlab/eslint-config

[![Version](https://img.shields.io/npm/v/@jihyunlab/eslint-config.svg?style=flat-square)](https://www.npmjs.com/package/@jihyunlab/eslint-config?activeTab=versions) [![Downloads](https://img.shields.io/npm/dt/@jihyunlab/eslint-config.svg?style=flat-square)](https://www.npmjs.com/package/@jihyunlab/eslint-config) [![Last commit](https://img.shields.io/github/last-commit/jihyunlab/eslint-config.svg?style=flat-square)](https://github.com/jihyunlab/eslint-config/graphs/commit-activity) [![License](https://img.shields.io/github/license/jihyunlab/eslint-config.svg?style=flat-square)](https://github.com/jihyunlab/eslint-config/blob/master/LICENSE) [![Linter](https://img.shields.io/badge/linter-eslint-blue?style=flat-square)](https://eslint.org) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\
[![Build](https://github.com/jihyunlab/eslint-config/actions/workflows/build.yml/badge.svg)](https://github.com/jihyunlab/eslint-config/actions/workflows/build.yml) [![Lint](https://github.com/jihyunlab/eslint-config/actions/workflows/lint.yml/badge.svg)](https://github.com/jihyunlab/eslint-config/actions/workflows/lint.yml) [![Prettier](https://github.com/jihyunlab/eslint-config/actions/workflows/prettier.yml/badge.svg)](https://github.com/jihyunlab/eslint-config/actions/workflows/prettier.yml)

@jihyunlab/eslint-config provides ESLint config for TypeScript.

## Installation

```bash
npm i --save-dev @jihyunlab/eslint-config eslint @eslint/js typescript typescript-eslint
```

## Configuration

### Configure ESLint

Create and edit the <U>eslint.config.mjs</U> file.

```
├─ eslint.config.mjs
└─ ...
```

```
import eslint from '@eslint/js';
import tsEslint from 'typescript-eslint';
import { jihyunlabEslintConfig } from '@jihyunlab/eslint-config';

export default tsEslint.config(
  {
    ignores: ['node_modules', 'dist', 'build', 'coverage'],
  },
  {
    languageOptions: {
      parserOptions: {
        project: './tsconfig.eslint.json',
        tsconfigRootDir: import.meta.dirname,
      },
    },
  },
  {
    files: ['**/*.ts', '**/*.tsx', '**/*.cts', '**/*.mts'],
    extends: [
      eslint.configs.recommended,
      ...tsEslint.configs.recommendedTypeChecked,
      jihyunlabEslintConfig,
    ],
  }
);
```

### Configure TypeScript for ESLint

Create and edit the <U>tsconfig.eslint.json</U> file.

```
├─ tsconfig.eslint.json
└─ ...
```

```
{
  "extends": "./tsconfig.json",
  "include": ["**/*.ts", "**/*.tsx", "**/*.cts", "**/*.mts"],
  "exclude": ["node_modules", "dist", "build", "coverage"]
}
```

## Credits

Authored and maintained by JihyunLab <<info@jihyunlab.com>>

## License

Open source [licensed as MIT](https://github.com/jihyunlab/eslint-config/blob/master/LICENSE).
npm package: @jihyunlab/secret
Description: JihyunLab Secret.
Author: JihyunLab
Latest version: 2.0.1

# @jihyunlab/secret

[![Version](https://img.shields.io/npm/v/@jihyunlab/secret.svg?style=flat-square)](https://www.npmjs.com/package/@jihyunlab/secret?activeTab=versions) [![Downloads](https://img.shields.io/npm/dt/@jihyunlab/secret.svg?style=flat-square)](https://www.npmjs.com/org/jihyunlab) [![Last commit](https://img.shields.io/github/last-commit/jihyunlab/secret.svg?style=flat-square)](https://github.com/jihyunlab/secret/graphs/commit-activity) [![License](https://img.shields.io/github/license/jihyunlab/secret.svg?style=flat-square)](https://github.com/jihyunlab/secret/blob/master/LICENSE) [![Linter](https://img.shields.io/badge/linter-eslint-blue?style=flat-square)](https://eslint.org) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\
[![Build](https://github.com/jihyunlab/secret/actions/workflows/build.yml/badge.svg)](https://github.com/jihyunlab/secret/actions/workflows/build.yml) [![Lint](https://github.com/jihyunlab/secret/actions/workflows/lint.yml/badge.svg)](https://github.com/jihyunlab/secret/actions/workflows/lint.yml) [![codecov](https://codecov.io/gh/jihyunlab/secret/graph/badge.svg?token=K2536J64LQ)](https://codecov.io/gh/jihyunlab/secret)

@jihyunlab/secret provides functionality in Node.js applications to decrypt .env files encrypted with [@jihyunlab/secret-cli](https://www.npmjs.com/package/@jihyunlab/secret-cli).

The encryption function is implemented with [@jihyunlab/crypto](https://www.npmjs.com/package/@jihyunlab/crypto) and provides encryption for AES 256 GCM.

## Installation

```bash
npm i @jihyunlab/secret
```

## Usage

Decrypt the .env key value by directly entering the separately managed encryption key.

```
import { CIPHER, Env } from '@jihyunlab/secret';

const cipher = await Env.createCipher(CIPHER.AES_256_GCM, 'YourSecretKey');
const value = await cipher.decrypt(process.env.ENV_KEY);
```

## Encryption key

If you register JIHYUNLAB_SECRET_KEY in system or user environment variables, it will be used as the encryption key during encryption.

```bash
export JIHYUNLAB_SECRET_KEY=YourSecretKey
```

You can decrypt the .env key value using the encryption key registered in the environment variables.

```
import { Env } from '@jihyunlab/secret';

const cipher = await Env.createCipher();
const value = await cipher.decrypt(process.env.ENV_KEY);
```

## Credits

Authored and maintained by JihyunLab <<info@jihyunlab.com>>

## License

Open source [licensed as MIT](https://github.com/jihyunlab/secret/blob/master/LICENSE).
npm package: @jihyunlab/web-buffer
Description: JihyunLab Web buffer.
Author: JihyunLab
Latest version: 1.0.1

# @jihyunlab/web-buffer

[![Version](https://img.shields.io/npm/v/@jihyunlab/web-buffer.svg?style=flat-square)](https://www.npmjs.com/package/@jihyunlab/web-buffer?activeTab=versions) [![Downloads](https://img.shields.io/npm/dt/@jihyunlab/web-buffer.svg?style=flat-square)](https://www.npmjs.com/package/@jihyunlab/web-buffer) [![Last commit](https://img.shields.io/github/last-commit/jihyunlab/web-buffer.svg?style=flat-square)](https://github.com/jihyunlab/web-buffer/graphs/commit-activity) [![License](https://img.shields.io/github/license/jihyunlab/web-buffer.svg?style=flat-square)](https://github.com/jihyunlab/web-buffer/blob/master/LICENSE) [![Linter](https://img.shields.io/badge/linter-eslint-blue?style=flat-square)](https://eslint.org) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\
[![Build](https://github.com/jihyunlab/web-buffer/actions/workflows/build.yml/badge.svg)](https://github.com/jihyunlab/web-buffer/actions/workflows/build.yml) [![Lint](https://github.com/jihyunlab/web-buffer/actions/workflows/lint.yml/badge.svg)](https://github.com/jihyunlab/web-buffer/actions/workflows/lint.yml) [![Prettier](https://github.com/jihyunlab/web-buffer/actions/workflows/prettier.yml/badge.svg)](https://github.com/jihyunlab/web-buffer/actions/workflows/prettier.yml) [![codecov](https://codecov.io/gh/jihyunlab/web-buffer/graph/badge.svg?token=QJX5G75FXA)](https://codecov.io/gh/jihyunlab/web-buffer)

@jihyunlab/web-buffer provides data conversion capabilities in web application environments where Node.js's Buffer class cannot be used.

## Installation

```bash
npm i @jihyunlab/web-buffer
```

## Usage

You can create a buffer and convert data based on encoding type.\
Encoding types are provided for Hex, Base64, Base64URL, UTF-8, and Uint8Array data.

```
import { WebBuffer } from '@jihyunlab/web-buffer';

const buffer = WebBuffer.from(
  'jihyunlab',
  'utf8' /* hex, base64, base64url, utf8, uint8array */
);

const hex = buffer.toString('hex');
console.log(hex); // 6a696879756e6c6162

const base64 = buffer.toString('base64');
console.log(base64); // amloeXVubGFi

const base64Url = buffer.toString('base64url');
console.log(base64Url); // amloeXVubGFi

const utf8 = buffer.toString('utf8');
console.log(utf8); // jihyunlab

const uint8Array = buffer.toUint8Array();
console.log(uint8Array); // Uint8Array(9) [106, 105, 104, 121, 117, 110, 108, 97, 98]
```

Uint8Array data can create buffer without defining an encoding type.

```
const buffer = WebBuffer.from(
  new Uint8Array([106, 105, 104, 121, 117, 110, 108, 97, 98])
);
```

UTF-8 data can be converted without defining the encoding type.

```
const utf8 = buffer.toString();
```

## Credits

Authored and maintained by JihyunLab <<info@jihyunlab.com>>

## License

Open source [licensed as MIT](https://github.com/jihyunlab/web-buffer/blob/master/LICENSE).
npm package: @jihyunlab/web-secret
Description: JihyunLab Web secret.
Author: JihyunLab
Latest version: 1.0.4

# @jihyunlab/web-secret

[![Version](https://img.shields.io/npm/v/@jihyunlab/web-secret.svg?style=flat-square)](https://www.npmjs.com/package/@jihyunlab/web-secret?activeTab=versions) [![Downloads](https://img.shields.io/npm/dt/@jihyunlab/web-secret.svg?style=flat-square)](https://www.npmjs.com/org/jihyunlab) [![Last commit](https://img.shields.io/github/last-commit/jihyunlab/web-secret.svg?style=flat-square)](https://github.com/jihyunlab/web-secret/graphs/commit-activity) [![License](https://img.shields.io/github/license/jihyunlab/web-secret.svg?style=flat-square)](https://github.com/jihyunlab/web-secret/blob/master/LICENSE) [![Linter](https://img.shields.io/badge/linter-eslint-blue?style=flat-square)](https://eslint.org) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\
[![Build](https://github.com/jihyunlab/web-secret/actions/workflows/build.yml/badge.svg)](https://github.com/jihyunlab/web-secret/actions/workflows/build.yml) [![Lint](https://github.com/jihyunlab/web-secret/actions/workflows/lint.yml/badge.svg)](https://github.com/jihyunlab/web-secret/actions/workflows/lint.yml) [![codecov](https://codecov.io/gh/jihyunlab/web-secret/graph/badge.svg?token=K2536J64LQ)](https://codecov.io/gh/jihyunlab/web-secret)

@jihyunlab/web-secret provides functionality in web applications to decrypt .env files encrypted with [@jihyunlab/secret-cli](https://www.npmjs.com/package/@jihyunlab/secret-cli).

The encryption function is implemented with [@jihyunlab/web-crypto](https://www.npmjs.com/package/@jihyunlab/web-crypto) and provides encryption for AES 256 GCM.

## Installation

```bash
npm i @jihyunlab/web-secret
```

## Usage

Decrypt the .env key value by directly entering the separately managed encryption key.

```
import { CIPHER, Env } from '@jihyunlab/web-secret';

const cipher = await Env.createCipher(CIPHER.AES_256_GCM, 'YourSecretKey');
const value = await cipher.decrypt(process.env.ENV_KEY);
```

## Encryption key

In web applications, since it's not possible to retrieve system or user environment variables, it's recommended to manage and directly input encryption keys separately.

## Credits

Authored and maintained by JihyunLab <<info@jihyunlab.com>>

## License

Open source [licensed as MIT](https://github.com/jihyunlab/web-secret/blob/master/LICENSE).
npm package: @jiiir/mongo2sql
Description: A Mongo to SQL Converter
Author: Juan Manuel Reisz
Latest version: 1.0.1

# Mongo2SQL

Mongo2SQL is a lightweight MongoDB to SQL translator written in Typescript.

![Screenshot](./public/assets/img/demo.gif)

## Installation

```sh
$ npm i @jreisz/mongo2sql
```

## Example usage

```sh
import { MongoToSQLTranslator } from "@jreisz/mongo2sql";

const exampleQuery1 = { name: 'john' };
const exampleQuery2 = { _id: 23113 }, { name: 1, age: 1 };
const exampleQuery3 = { age: { $gte: 21 } }, { name: 1, _id: 1 };

console.log(MongoToSQLTranslator.translate(exampleQuery1));
console.log(MongoToSQLTranslator.translate(exampleQuery2));
console.log(MongoToSQLTranslator.translate(exampleQuery3));
```

## Contributing

Changes and improvements are more than welcome! Feel free to fork and open a pull request. Please make your changes in a specific branch and request to pull into `main`! If you can, please make sure the translator fully works before sending the PR, as that will help speed up the process.

## TODO

- Complex Data Types (Date, ObjectId)
- Add more Unit Tests
- Improve design
- Refactoring

## License

[MIT](https://choosealicense.com/licenses/mit/)