open-index/open-npm huggingface dataset:
npm package: @leomotors/config
Description: My personal config for node projects, include ESLint Config
Author: Nutthapat Pongtanyavichai
Latest version: 2.0.0

# @leomotors/config

[![](https://img.shields.io/npm/v/@leomotors/config.svg?maxAge=3600)](https://www.npmjs.com/package/@leomotors/config)
[![](https://img.shields.io/npm/dt/@leomotors/config.svg?maxAge=3600)](https://www.npmjs.com/package/@leomotors/config)
[![](https://github.com/Leomotors/node-config/actions/workflows/test.yml/badge.svg)](https://github.com/Leomotors/node-config/actions)

My personal config for node projects, include ESLint Config

## Install

```bash
pnpm add -D @leomotors/config
```

## Usage

File: `eslint.config.js`

```js
import { createESLintConfig } from "@leomotors/config";
export default createESLintConfig();
```

To add other rules:

```js
import { createESLintConfig } from "@leomotors/config";
import { defineConfig } from "eslint/config";

export default defineConfig(
  ...createESLintConfig(),
  {
    files: ["**/*.ts", "**/*.svelte", "**/*.mts"],
    rules: {
      "no-undef": "off",
    },
  },
);
```
npm package: @leomotors/music-bot
Description: discord.js music bot that can be run standalone or as a module for other bots
Author: Leomotors
Latest version: 0.24.0
Deprecated: Now become @cocoa-discord/music-module

# @leomotors/music-bot

[![](https://img.shields.io/npm/v/@leomotors/music-bot.svg?maxAge=3600)](https://www.npmjs.com/package/@leomotors/music-bot)
[![](https://img.shields.io/npm/dt/@leomotors/music-bot.svg?maxAge=3600)](https://www.npmjs.com/package/@leomotors/music-bot)
[![](https://github.com/Leomotors/music-bot/actions/workflows/test.yml/badge.svg)](https://github.com/Leomotors/music-bot/actions)

Music Bot components extracted from [harunon.js](https://github.com/CarelessDev/harunon.js)

## How to use

This package has 2 parts, the underlying mechanics and the part that consume it.

You likely only want to import complete Music Cog which is compatible to [cocoa-discord-utils](https://github.com/Leomotors/cocoa-discord-utils)

See Example at [tests/bot.js](./tests/bot.js)

Apart from that, if you can understand the code [src/voice.ts](src/voice.ts),
you can directly interact with api underneath, all of them is public.

### Minimal Usage

- Clone this repository, build the package and run tests/bot.js

- Adjust and add some codes to personalize the bot

### Advanced Usage

- Import music module to existing bot that use [Cocoa Discord Utils](https://github.com/Leomotors/cocoa-discord-utils)
(See [cminusminus](https://github.com/Leomotors/cminusminus) for minimal example or [Waifu Bot](https://github.com/Leomotors/waifu-bot) for sized bot)

## Prerequisites

- node 16 (Minimum required by discord.js, What my bots are optimized for)

- **IMPORTANT** [Encoding Libraries](https://www.npmjs.com/package/@discordjs/voice#dependencies)
(This library does not ship these encoding libraries, so you can freely decide which one to install)

## ✨Features

- play from YouTube

- queue

- pause / resume

- Loop

- Remove from Queue and Clear

- Search with beautiful embeds

## 🖼️ Highlight

- ✨ Search Feature

![](./images/search1.png)

![](./images/search2.png)

*Note: Picture from previous release, lazy to update*

## Note

- This module has its cog named "Music", be sure to not creating a duplicate name

- Despite cocoa-discord-utils supports CommonJS, this module does not

- This module is still in beta, not implemented features includes but not limited to: Working in edge cases for example, user invoke command without being in voice channel
npm package: @leomotors/prisma-nestjs-graphql
Description: Generate object types, inputs, args, etc. from prisma schema file for usage with @nestjs/graphql module
Latest version: 18.0.0

# prisma-nestjs-graphql

Generate object types, inputs, args, etc. from prisma schema file for usage with @nestjs/graphql module.

## 🍴 This is a fork version of prisma-nestjs-graphql

Original Package -> https://www.npmjs.com/package/prisma-nestjs-graphql

### Changes from original

- Array is non nullable
npm package: @leomotors/scripts
Description: As its name suggests, it's a scripts that I used a lot in nodejs project, so I decided to put it in npm, so that I can access it easily.
Author: Leomotors
Latest version: 3.1.0

# @leomotors/scripts

[![](https://img.shields.io/npm/v/@leomotors/scripts.svg?maxAge=3600)](https://www.npmjs.com/package/@leomotors/scripts)
[![](https://img.shields.io/npm/dt/@leomotors/scripts.svg?maxAge=3600)](https://www.npmjs.com/package/@leomotors/scripts)

_Most of the downloads probably came from me, 😂_

As its name suggests, it's a scripts that I used a lot in nodejs project,
so I decided to put it in npm, so that I can access it easily.

You are free to use this if you want to do the same thing.

But, please keep in mind that breaking change can be made at any point.

Here is some info in case you wonder what I'm doing.

## Scripts

_Once you install this package, these scripts will be installed to `node_modules/.bin`_

lm-inc: Increment Patch Number by 1 when called

lm-config: Put some metadata into specified file (Default: src/config.g.ts)

```
lm-config {file name} {time zone (Default: Asia/Bangkok)}
```

- Parameter: File Path, in case you want to override default

### configPackage.js Output

```ts
export const Version = "3.0.0";
export const BuildTime = "2022-01-24 17:06:58";
```

## Example Usage in package.json

```json
"scripts": {
    "dev": "lm-inc && lm-config && smth dev",
    "build": "lm-config && smth build",
}
```
npm package: @leomotors/sv-components
Description: My personal UI/Components Library
Author: Leomotors
Latest version: 0.4.0

# @leomotors/sv-components

[![](https://img.shields.io/npm/v/@leomotors/sv-components.svg?maxAge=3600)](https://www.npmjs.com/package/@leomotors/sv-components)
[![](https://img.shields.io/npm/dt/@leomotors/sv-components.svg?maxAge=3600)](https://www.npmjs.com/package/@leomotors/sv-components)
[![](https://github.com/Leomotors/sv-components/actions/workflows/tests.yml/badge.svg)](https://github.com/Leomotors/sv-components/actions)

My personal UI/Components Library

## Components

- NavBar

### Known Limitation

- Website that does not use absolute path (ex. GitHub Pages) will not work well with this.
npm package: @leomunozr/setup-react-project
Description: Script to add React library and dependencies to an existing project.
Author: leomunozr
Latest version: 0.0.5

# Setup React Project

Install React and it's dependencies and create the needed configuration files for Babel and Webpack.

## Installation
```js
npx @leomunozr/setup-react-project
```

## Usage 
In the root directory of the project you want to install React.
```sh
> setup-react
```

## What's included? 

Script will automatically install the dependencies for React:
- react
- react-dom

and the develpment dependencies for building the project:
- @babel/core
- @babel/preset-env
- @babel/preset-react
- babel-loader
- babel-plugin-transform-object-rest-spread
- css-loader
- style-loader
- webpack
- webpack-cli
- webpack-dev-server

You can use all ES6 features, including the spread operator `...`.

## Scripts

_npm_ scripts are added to _package.json_.
If the _package.json_ already contains scripts with the same name, they will be added with the prefix _react-_.

- _start_: opens the webpack-dev-server.
- _prestart_: compiles project using webpack.
- _build_: compiles project for production.
npm package: @leon-frontend/pub-package-kso
Description: 开发一个包含字符串和数组处理工具函数的 npm 包，完成初始化、编码、测试后发布到 npm。发布后新增日期格式化功能(如 formatDate 函数)，更新版本并重新发布。
Author: liao3
Latest version: 1.1.0

#  包名：@leon-frontend/pub-package-kso

# 01. 环境构建

- **注意**：使用 **PNPM** 包管理工具。
- **tsup 构建工具**：同时支持 CommonJS (require) 和 ES Module (import) 模块。
- **vitest 测试工具**：现代的测试框架，与 TypeScript 和 ESM 集成得非常好。

```bash
# 1. 创建 package.json 文件，这个文件是项目的配置文件。
pnpm init

# 2. 使用 TS 编写代码，安装 TS 和类型定义。
pnpm add -D typescript @types/node

# 3. 创建 tsconfig.json 配置文件。可以手动创建，也可以用 pnpm tsc --init 命令生成。

# 4. tsup 构建工具
pnpm add -D tsup 

# 5. vitest 测试工具
pnpm add -D vitest
```

# 02. Git 上传 vs NPM 发布

- **上传到 Git**：上传的是**源码** (`src`) 和**配置文件**，忽略编译产物 (`dist`) 和依赖 (`node_modules`)。

- **发布到 NPM**：发布的是**编译产物** (`dist`) 和**说明文件** (`package.json`, `README.md`)，忽略源码 (`src`) 和开发依赖配置 (`tsconfig.json` 等)。这是通过 `package.json` 中的 `"files"` 字段来控制的。
- **注意**：如果在 npm 官网上找不到发布的包，可执行命令 `npm view @leon-frontend/pub-package-kso`。
npm package: @leon.hezj/observer
Description: A JavaScript library to observe your objects
Author: leon.hezj
Latest version: 1.0.0

# Observer.js
A JavaScript library to observe your objects.  

# Introduction
Observer.js is focused on building your Model layer with awesome coding experience.You are easy to observe and primitive change and computed change without extra effort.  
Its design is heavily inspired by the observer module of [Vue](https://github.com/vuejs/vue)

# Compatibility Note
Observe.js is using [Proxy](https://www.ecma-international.org/ecma-262/8.0/#sec-proxy-objects) feature of ES6 and does only support modern web browser and Node.js **v6.4.0+**.You should check [compatibility list](https://caniuse.com/#search=proxy) before using Observe.js

# Install
```
TODO
```

# Getting Started
```

```

# License
[MIT](https://opensource.org/licenses/MIT)


Copyright (c) 2013-present, leon.hezj
npm package: @leon82/nget
Description: 下载视频网站视频流，并且转码
Author: liuguanyu
Latest version: 1.0.1

# 缘起

老家的房子很久才回去住一次，所以没有安装宽带网络。不过有一个硕大的、画面很好的、声音很震撼的电视。

特别爱看《晓松奇谈》、《鸿观》什么的。

自己动手丰衣足食吧。于是搞了这么一个玩意：

1. 给出网页地址。

2. 下载到本地。


# 运行

```npm start```

# 要求

1. 需要安装ffmpeg视频转码库。


# 感谢
部分思路，借鉴自python3编写的同类项目 https://github.com/soimort/you-get