open-index/open-npm huggingface dataset:
npm package: @leny/banye
Description: Add dynamic header comments to files - cleaned/updated version of misteroneill/bannerize
Author: leny
Latest version: 0.4.0

# @leny/banye

> Add dynamic header comments to files - cleaned/updated version of [misteroneill/bannerize](https://github.com/misteroneill/bannerize)

* * *

## Banner Templates

Banner templates use the [EJS](https://www.npmjs.com/package/ejs) templating language. Templates are passed the following properties:

- `pkg`: A representation of the nearest `package.json` file.
- `date`: A JavaScript Date object.
- `path`: Relate path of the file.

A simple banner might look something like:

```
/*! <%= pkg.name %> | <%= pkg.version %>
 *  (c) <%= date.getFullYear() %>
 */
```

And render to:

```
/*! @leny/banye | 1.0.0
 *  (c) 2021 MIT
 */
```

## CLI

`banye` ships with a CLI command. Its options vary from the programmatic API. To see all its options, use:

```sh
$ banye --help
```

An example usage might look like:

```sh
$ banye *.js *.css --banner=foo/bar.ejs
```

## API

The `banye ` module can be used in your programs. It exports a single function, `banye `, which takes two arguments:

### `banye(patterns, [options])`

- `pattern` `{String|Array}`: A string or array of glob pattern(s) to which to apply the banner.
- `[options]` `{Object}`: An object containing optional values.

The return value of `bannerize()` is a `Promise` that resolves with an array of all the file paths it modified.

### Options

- `banner` A banner file location. Defaults to `banner.ejs` in the `cwd`.

- `cwd` Override the `cwd` for all paths passed to `bannerize`. Relative paths will be relative to `process.cwd()`. Defaults to `process.cwd()`.
  
- `lineBreak` Sets the linebreak (`'CRLF'`, `'LF'`). Defaults to `'LF'`.

- `replace` Replace the starting lines of the files (up to the first empty line) with the banner

- `check` Check if header already exists in good format before add or replace
npm package: @leny/eslint-config
Description: Personal, taylored by years ESLint config
Author: leny
Latest version: 0.2.0

# @leny/eslint-config

> Personal, taylored by years ESLint config

* * *

## About

It's been years I use ESLint. I've taylored my config for that time. I'm finally creating this to stop copy/paste it everytime.

## Usage

To use these rules, you simply need to configure your `.eslintrc.js` to look like this:

```javascript
module.exports = {
	extends: "@leny"
};
```

> cf. the official ESLint documentation [page about shareable configs](https://eslint.org/docs/developer-guide/shareable-configs#using-a-shareable-config).

### NOTE

This module only contains the eslint config. You need to be sure to also install the following **dev dependencies** in your project:

- `@babel/eslint-parser`
- `eslint`
- `eslint-plugin-prettier`
- `eslint-plugin-react`
- `eslint-plugin-react-hooks`
- `eslint-plugin-unicorn`
- `prettier`
- `@typescript-eslint/eslint-plugin`
- `@typescript-eslint/parser`

* * *
February 2021, [leny](https://github.com/leny)
npm package: @leny/konteks
Description: Dev env & config for NodeJS
Author: leny
Latest version: 0.2.0

# @leny/konteks

> Dev env & config for NodeJS

* * *

## About

A collection of config files & scripts to install dev env & tools.  
This module contains common ESLint rules, Prettier config & some other useful stuffs (husky, etc.)

## Usage

You can also use the following command in your project:

	npx @leny/konteks

That will create the eslint config file *and* install the needed dependencies.
Simple and easy.

#### (optional) Create `pre-commit` git hook

You can also setup a git `pre-commit` hook to ensure that ESlint and Prettier are run *before* each commit, discarding commit if there's an error.

Simply use the `--with-hook` flag:

	npx @leny/konteks --with-hook

#### (optional) Create `lint` npm script

You can also setup a `lint` npm script to lint and prettify your files.

> 🖐 **NOTE:**the script assumes your files are in a folder called `src`. Correct the path in your package.json if needed.

Simply use the `--with-script` flag:

	npx @leny/konteks --with-script

* * *
npm package: @leny/twitter-scraper
Description: A simple scraper to gather users' stats from twitter profile.
Author: leny
Latest version: 1.0.0

# @leny/twitter-scraper

[![NPM version](http://img.shields.io/npm/v/%40leny%2Ftwitter-scraper.svg)](https://www.npmjs.org/package/%40leny%2Ftwitter-scraper) ![Downloads counter](http://img.shields.io/npm/dm/%40leny%2Ftwitter-scraper.svg)

> A simple scraper to gather users' stats from twitter profile.

* * *

## Usage

### Installation

To use **@leny/twitter-scraper**, you must at first install it.

    npm install --save @leny/twitter-scraper

### Usage

Simply import and call the function with the twitter username you want to scrap stats.

```javascript
	import scraper from "@leny/twitter-scraper";
	
	(async () => {
		const {
			tweets,
			following,
			followers,
			favorites,
		} = await scraper("leny_be");
	})();
```

The function returns and object with four properties, which are numbers or `null`, if the parsing fails.

## Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style.

## License
Copyright ©2019 Leny  
Licensed under the MIT license.
npm package: @lenylvt/pi-coding-agent
Description: Coding agent CLI with read, bash, edit, write tools and session management
Author: lenylvt
Latest version: 0.69.2

# @lenylvt/pi-coding-agent

Terminal coding agent CLI and SDK.

## Install

```bash
bun add -g @lenylvt/pi-coding-agent
```

## CLI

```bash
pi
pi "Review this module"
pi -p "Summarize src/main.ts"
pi self-update
```

At startup the CLI checks the published registry with a local cache. If a newer published version exists, it shows a brief notice and points to `pi self-update`.

## Package Commands

```bash
pi install bun:@scope/package
pi update
pi list
pi config
```

## SDK

```ts
import { createAgentSession, ModelRegistry, SessionManager } from "@lenylvt/pi-coding-agent";
```

Related packages:

- `@lenylvt/pi-ai`
- `@lenylvt/pi-agent-core`
- `@lenylvt/pi-tui`

## Docs

- [SDK](/Users/leny/Documents/pi/packages/coding-agent/docs/sdk.md)
- [Extensions](/Users/leny/Documents/pi/packages/coding-agent/docs/extensions.md)
- [Settings](/Users/leny/Documents/pi/packages/coding-agent/docs/settings.md)
- [Release](/Users/leny/Documents/pi/packages/coding-agent/docs/release.md)
npm package: @lenz-design/vite-plugin
Description: Este plugin externaliza as dependencias do Lenz Designer e executa o Agente automaticamente evitando erros ao tentar importar módulos com o namespace `lenz:*`.
Latest version: 0.1.2

# Suporte ao Lenz Designer para Vite

Este plugin externaliza as dependencias do Lenz Designer e executa o Agente automaticamente evitando erros ao tentar importar módulos com o namespace `lenz:*`.

## Instalação

```bash
npm i @lenz-design/vite-plugin --save-dev
```

Use o plugin no seu arquivo `vite.config.ts`:

```ts
import { defineConfig } from 'vite'

import Lenz from '@lenz-design/vite-plugin'

export default defineConfig({
  plugins: [
    Lenz()
  ]
})
```
npm package: @leo-guinan/api
Description: Core server APIs of bull-board
Author: leo-guinan
Latest version: 0.0.1

# <img alt="@bull-board" src="https://raw.githubusercontent.com/felixmosh/bull-board/master/packages/ui/src/static/images/logo.svg" width="35px" /> @leo-guinan/api 

Core server APIs of `bull-board`.

<p align="center">
  <a href="https://www.npmjs.com/package/@leo-guinan/api">
    <img alt="npm version" src="https://img.shields.io/npm/v/@leo-guinan/api">
  </a>
  <a href="https://www.npmjs.com/package/bull-board">
    <img alt="npm downloads" src="https://img.shields.io/npm/dw/bull-board">
  </a>
  <a href="https://github.com/vcapretz/bull-board/blob/master/LICENSE">
    <img alt="licence" src="https://img.shields.io/github/license/vcapretz/bull-board">
  </a>
<p>

![UI](https://raw.githubusercontent.com/felixmosh/bull-board/master/screenshots/shot.png)
![Fails](https://raw.githubusercontent.com/felixmosh/bull-board/master/screenshots/fails.png)

For more info visit the main [README](https://github.com/felixmosh/bull-board#readme)
npm package: @leo-guinan/express
Description: Express.js server adapter for Bull-Board package
Author: leo-guinan
Latest version: 0.0.1

# <img alt="@bull-board" src="https://raw.githubusercontent.com/felixmosh/bull-board/master/packages/ui/src/static/images/logo.svg" width="35px" /> @leo-guinan/express 

[Express.js](https://expressjs.com/) server adapter for `bull-board`.

<p align="center">
  <a href="https://www.npmjs.com/package/@leo-guinan/express">
    <img alt="npm version" src="https://img.shields.io/npm/v/@leo-guinan/express">
  </a>
  <a href="https://www.npmjs.com/package/bull-board">
    <img alt="npm downloads" src="https://img.shields.io/npm/dw/bull-board">
  </a>
  <a href="https://github.com/vcapretz/bull-board/blob/master/LICENSE">
    <img alt="licence" src="https://img.shields.io/github/license/vcapretz/bull-board">
  </a>
<p>

![UI](https://raw.githubusercontent.com/felixmosh/bull-board/master/screenshots/shot.png)
![Fails](https://raw.githubusercontent.com/felixmosh/bull-board/master/screenshots/fails.png)

# Usage examples
1. [Simple express setup](https://github.com/felixmosh/bull-board/tree/master/examples/with-express)
2. [Basic authentication example](https://github.com/felixmosh/bull-board/tree/master/examples/with-express-auth)
2. [Multiple instance of the board](https://github.com/felixmosh/bull-board/tree/master/examples/with-multiple-instances)

For more info visit the main [README](https://github.com/felixmosh/bull-board#readme)
npm package: @leo-guinan/fastify
Description: Fastify.js server adapter for Bull-Board package
Author: leo-guinan
Latest version: 0.0.1

# <img alt="@bull-board" src="https://raw.githubusercontent.com/felixmosh/bull-board/master/packages/ui/src/static/images/logo.svg" width="35px" /> @leo-guinan/fastify 

[Fastify.js](https://www.fastify.io/) server adapter for `bull-board`.

<p align="center">
  <a href="https://www.npmjs.com/package/@leo-guinan/fastify">
    <img alt="npm version" src="https://img.shields.io/npm/v/@leo-guinan/fastify">
  </a>
  <a href="https://www.npmjs.com/package/bull-board">
    <img alt="npm downloads" src="https://img.shields.io/npm/dw/bull-board">
  </a>
  <a href="https://github.com/vcapretz/bull-board/blob/master/LICENSE">
    <img alt="licence" src="https://img.shields.io/github/license/vcapretz/bull-board">
  </a>
<p>

![UI](https://raw.githubusercontent.com/felixmosh/bull-board/master/screenshots/shot.png)
![Fails](https://raw.githubusercontent.com/felixmosh/bull-board/master/screenshots/fails.png)

# Usage examples
1. [Simple fastify setup](https://github.com/felixmosh/bull-board/tree/master/examples/with-fastify)


For more info visit the main [README](https://github.com/felixmosh/bull-board#readme)
npm package: @leo-guinan/hapi
Description: Hapi.js server adapter for Bull-Board package
Author: leo-guinan
Latest version: 0.0.1

# <img alt="@bull-board" src="https://raw.githubusercontent.com/felixmosh/bull-board/master/packages/ui/src/static/images/logo.svg" width="35px" /> @leo-guinan/hapi 

[Hapi.js](https://hapi.dev/) server adapter for `bull-board`.

<p align="center">
  <a href="https://www.npmjs.com/package/@leo-guinan/hapi">
    <img alt="npm version" src="https://img.shields.io/npm/v/@leo-guinan/hapi">
  </a>
  <a href="https://www.npmjs.com/package/bull-board">
    <img alt="npm downloads" src="https://img.shields.io/npm/dw/bull-board">
  </a>
  <a href="https://github.com/vcapretz/bull-board/blob/master/LICENSE">
    <img alt="licence" src="https://img.shields.io/github/license/vcapretz/bull-board">
  </a>
<p>

![UI](https://raw.githubusercontent.com/felixmosh/bull-board/master/screenshots/shot.png)
![Fails](https://raw.githubusercontent.com/felixmosh/bull-board/master/screenshots/fails.png)

# Usage examples
1. [Simple hapi setup](https://github.com/felixmosh/bull-board/tree/master/examples/with-hapi)

For more info visit the main [README](https://github.com/felixmosh/bull-board#readme)
npm package: @leo-guinan/koa
Description: Koa.js server adapter for Bull-Board package
Author: leo-guinan
Latest version: 0.0.1

# <img alt="@bull-board" src="https://raw.githubusercontent.com/felixmosh/bull-board/master/packages/ui/src/static/images/logo.svg" width="35px" /> @leo-guinan/koa 

[Koa.js](https://koajs.com/) server adapter for `bull-board`.

<p align="center">
  <a href="https://www.npmjs.com/package/@leo-guinan/koa">
    <img alt="npm version" src="https://img.shields.io/npm/v/@leo-guinan/koa">
  </a>
  <a href="https://www.npmjs.com/package/bull-board">
    <img alt="npm downloads" src="https://img.shields.io/npm/dw/bull-board">
  </a>
  <a href="https://github.com/vcapretz/bull-board/blob/master/LICENSE">
    <img alt="licence" src="https://img.shields.io/github/license/vcapretz/bull-board">
  </a>
<p>

![UI](https://raw.githubusercontent.com/felixmosh/bull-board/master/screenshots/shot.png)
![Fails](https://raw.githubusercontent.com/felixmosh/bull-board/master/screenshots/fails.png)

# Usage examples
1. [Simple koa setup](https://github.com/felixmosh/bull-board/tree/master/examples/with-koa)

For more info visit the main [README](https://github.com/felixmosh/bull-board#readme)
npm package: @leo-guinan/ui
Description: Bull-Board's UI package
Author: leo-guinan
Latest version: 0.0.1

# <img alt="@bull-board" src="https://raw.githubusercontent.com/felixmosh/bull-board/master/packages/ui/src/static/images/logo.svg" width="35px" /> @leo-guinan/ui 

UI packages of `bull-board`.

<p align="center">
  <a href="https://www.npmjs.com/package/@leo-guinan/ui">
    <img alt="npm version" src="https://img.shields.io/npm/v/@leo-guinan/ui">
  </a>
  <a href="https://www.npmjs.com/package/bull-board">
    <img alt="npm downloads" src="https://img.shields.io/npm/dw/bull-board">
  </a>
  <a href="https://github.com/vcapretz/bull-board/blob/master/LICENSE">
    <img alt="licence" src="https://img.shields.io/github/license/vcapretz/bull-board">
  </a>
<p>

![UI](https://raw.githubusercontent.com/felixmosh/bull-board/master/screenshots/shot.png)
![Fails](https://raw.githubusercontent.com/felixmosh/bull-board/master/screenshots/fails.png)

For more info visit the main [README](https://github.com/felixmosh/bull-board#readme)
npm package: @leo-h/create-nodejs-app
Description: Create a modern Node.js app with TypeScript using one command.
Author: Leonardo Henrique
Latest version: 1.0.77

# @leo-h/create-nodejs-app

<div align="center">
	<img src="https://github.com/Leo-Henrique/create-nodejs-app/assets/72027449/f62187c5-8667-4cf4-b121-0043aceb164e"
	alt="Script usage example" />
</div>

Create a Node.js application with TypeScript with just one command and without worrying about environment or framework configurations. Dedicate your energy only to the business rules of your application.

## Get started

With NPM:

```bash
npm create @leo-h/nodejs-app
```

With Yarn:

```bash
yarn create @leo-h/nodejs-app
```

With PNPM:

```bash
pnpm create @leo-h/nodejs-app
```

## CLI

You can create the project non-interactively through the CLI. Arguments or options not provided will still be asked if it is mandatory information for creation.

```bash
Usage: @leo-h/create-nodejs-app [options] [project-directory]

Arguments:
  project-directory                    Name of the project or relative path of the project considering where the script was called.

Options:
  -pm, --package-manager <package-manager>  Package manager that will be used in the project.
  -t, --template <template-name>       Template that will be used in the project.
  -f, --framework <framework-name>     Framework that will be used in the project.
  -h, --help                           display help for command
```

## Features

- **Fast**: All templates use either [esbuild](https://esbuild.github.io/) or [SWC](https://swc.rs/) to compile and build TypeScript. Both are extremely fast and are used by tools like [Vite](https://vitejs.dev/) (esbuild) and [Next.js](https://nextjs.org/) (SWC).

- **Lint and code format**: All templates use [eslint](https://eslint.org/) to identify problems in the code and [prettier](https://prettier.io/) to ensure consistent code formatting. Both are integrated with [husky](https://typicode.github.io/husky/) and [lint-staged](https://github.com/lint-staged/lint-staged) to automatically run them before every commit you make with git.

- **Tests**: To encourage the use of tests, all templates already have a pre-configured unit testing setup with [Vitest](https://vitest.dev/). The API templates also come with integration testing examples, including all utility tools like [Supertest](https://github.com/ladjs/supertest#readme) and [Faker.js](https://fakerjs.dev/).
npm package: @leo-tools/eslint-config-base
Description: eslint
Author: tc9011
Latest version: 0.0.5

# `eslint-config-base`

> base eslint config

## Usage

```javascript
module.exports = {
  extends: ['@leo-tools/eslint-config-typescript'],
}
```

## Issues

if you have follow issue, update eslint
```text
Configuration for rule "prefer-regex-literals" is invalid:
Value [{"disallowRedundantWrapping":true}] should NOT have more than 0 items.
```



if you have follow issue, update eslint-plugin-import
```text
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/util/glob-util' is not defined by "exports" 
```

if you use jest, need to add follow setting
```javascript
module.exports = {
  extends: ['@leo-tools/eslint-config-typescript'],
  env: {
    jest: true,
  },
}
```
npm package: @leo-tools/eslint-config-common
Description: common eslint config
Author: tc9011
Latest version: 0.0.9

# eslint-config-common

![](https://img.shields.io/github/release/leo-tools/eslint-config-common.svg)   ![npm](https://img.shields.io/npm/dm/@leo-tools/eslint-config-common)

Common ESLint shareable config

## Installation

```shell script
$ npm install --save-dev @leo-tools/eslint-config-common
```
## Usage
Once the @leo-tools/eslint-config-common package is installed, you can use it by specifying @leo-tools/eslint-config-common in the extends section of your ESLint configuration.

```text
{
  "extends": ["@leo-tools/eslint-config-common"],
  "rules": {
    // Additional, per-project rules...
  }
}
```
npm package: @leo-tools/eslint-config-react-typescript
Description: eslint for react ts project
Author: tc9011
Latest version: 0.0.20

# `eslint-config-react-typescript`

> eslint for react ts project

## Usage

```shell
yarn add @leo-tools/eslint-config-react-typescript -D
```

```javascript
module.exports = {
  // Other settings
  extends: ['@leo-tools/eslint-config-react-typescript'],
}
```

## FAQ

if you have follow issue, update eslint-plugin-react and eslint-plugin-react-hooks

```text
Definition for rule '****' was not found
```
npm package: @leo-tools/eslint-config-typescript
Description: eslint for typescript
Author: tc9011
Latest version: 0.0.20

# `typescrit-config`

> eslint for typescript

## Usage

```shell
yarn add @leo-tools/eslint-config-typescript -D
```

```javascript
module.exports = {
  // Other settings
  extends: ['@leo-tools/eslint-config-typescript'],
  parserOptions: {
    project: './tsconfig.json'
  }
}
```

## @typescript-eslint dependencies

This package has @typescript-eslint/parser in dependencies.
And it has @typescript-eslint/eslint-plugin in peerDependencies.
Both are specified as ranges. It's probably safest for the installed versions of these packages to be the same. This can be achieved by:

Pin (exact version) the @typescript-eslint/eslint-plugin in package.json.
Have a package-lock.json which locks the version of the @typescript-eslint/parser sub-dependency.
And both pin/lock to the same version.

## FAQ

if you have follow issue, update @typescript-eslint/eslint-plugin and @typescript-eslint/parser

```text
 Failed to load plugin '@typescript-eslint' declared in '.eslintrc.js » @leo-tools/eslint-config-typescript': Class extends value undefined is not a constructor or null
```
npm package: @leo-tools/eslint-config-vue
Description: eslint config for vue
Author: tc9011
Latest version: 0.0.9

# eslint-config-vue

![](https://img.shields.io/github/release/leo-tools/eslint-config-vue.svg)  ![npm](https://img.shields.io/npm/dm/@leo-tools/eslint-config-vue)

eslint config for vue

## Installation

```shell script
$ npm install --save-dev @leo-tools/eslint-config-vue
```

## Usage

This package is base on `@vue/cli-plugin-eslint` and `eslint-plugin-vue`, so you need to use `@vue/cli` create a vue project with eslint, and then install this package.

Once the @leo-tools/eslint-config-vue package is installed, you can use it by specifying @leo-tools/eslint-config-vue in the extends section of your ESLint configuration.

```text
{
  "extends": ["@leo-tools/eslint-config-vue"],
  "rules": {
    // Additional, per-project rules...
  }
}
```
npm package: @leo-tools/eslint-plugin-use-server-top-level
Description: Custom ESLint rule to ensure specified TypeScript files start with `'use server'`.
Author: tc9011
Latest version: 1.0.0

# eslint-plugin-use-server-top-level

Custom ESLint rule to ensure specified TypeScript files start with `'use server'`.

## Features
- Checks if the first code line of matched files is `'use server'` or `"use server"`.
- Skips leading comments and empty lines.
- Path matching is configurable via the `pathPattern` option.

## Installation

```bash
npm install @leo-tools/eslint-plugin-use-server-top-level --save-dev
```

## Usage

1. Import the plugin in your ESLint config (e.g. `eslint.config.mjs`):

```js
import useServerPlugin from '@leo-tools/eslint-plugin-use-server-top-level';

export default [
  {
    plugins: {
      'use-server': useServerPlugin,
    },
    rules: {
      // Configure the rule and specify the path pattern
      'use-server/require-use-server': ['error', { pathPattern: 'src/services/actions/.*\\.ts$' }],
    },
  },
];
```

2. Run ESLint on your target files:

```bash
eslint
```

## Options
- `pathPattern` (string): Regex pattern to match file paths. Only matched files will be checked.

## Example
If a file at `src/services/actions/foo.ts` does not start with `'use server'`, ESLint will report an error:

```
Error: servers/actions/*.ts must start with 'use server'
```

## License
MIT
npm package: @leo-tools/stylelint-custom-rules
Description: custom rules for leo tool
Author: tc9011
Latest version: 1.1.9

# stylelint-custom-rules
![](https://img.shields.io/github/release/leo-tools/stylelint-custom-rules.svg)   ![npm](https://img.shields.io/npm/dm/@leo-tools/stylelint-custom-rules)

some custom stylelint rules

## Installation

```bash
yarn add @leo-tools/stylelint-custom-rules -D
```

## no-local-assets

```json
{
  "plugins": [
    "@leo-tools/stylelint-custom-rules"
  ],
  "rules": {
    "@leo-tools/no-local-assets": true // By default is 'asset' 
    // OR
    // "@leo-tools/no-local-assets": ['static'],
    // OR
    // "lego/no-local-assets": [/static\/assets/],
  }
}
```
npm package: @leo-tools/tmp
Description: ## 安装 ```bash npm install -g @leo-tools/tmp ```
Author: tc9011
Latest version: 0.8.0

# taobao-mp-tool

## 安装
```bash
npm install -g @leo-tools/tmp
```

## 使用

### 创建小程序
```bash
// 创建淘宝小程序
tmp create taobao-miniapp 

// 创建淘宝小部件
tmp create taobao-livecard

// 创建千牛小程序
tmp create qianniu-miniapp
```

### 生成页面/组件
```bash
// 创建页面
tmp g p

// 创建组件
tmp g c
```

### 增加 feature
```bash
// 增加 lint
tmp add lint
```

### 使用组件
```bash
// 使用组件
tmp use [组件名]
```

#### 组件列表

| 组件名              | 描述    | 使用                         | 平台    |
|------------------|-------|----------------------------|-------|
| color-picker-pro | 颜色选择器 | `tmp use color-picker-pro` | 千牛小程序 |
| image-uploader   | 图片上传  | `tmp use image-uploader`   | 千牛小程序 |
| modal-pro        | 弹窗    | `tmp use modal-pro`        | 千牛小程序 |
npm package: @leo-tools/tslint-config-common
Description: A TSLint config for leo-tools JavaScript Style
Author: tc9011
Latest version: 0.0.4

# tslint-config-common

Common TSLint shareable config

## Installation

```shell script
$ npm install --save-dev @leo-tools/tslint-config-common
```
## Usage
Once the @leo-tools/tslint-config-common package is installed, you can use it by specifying @leo-tools/tslint-config-common in the extends section of your TSLint configuration.

```text
{
  "extends": ["@leo-tools/tslint-config-common"],
  "rules": {
    // Additional, per-project rules...
  }
}
```
npm package: @leo-yagami/demo-package
Description: Sample package: Node.js for beginners
Author: Haitham Abdulhamid
Latest version: 1.0.1

# Sample package: Node.js for beginners
This is a sample package to learn how to publish packages in npm.
## Installation
```bash
npm install @leo-yagami/demo-package
```
## Usage
```js
import { sum, multiply } from '@leo-yagami/demo-package'
console.log(sum(1, 2))
console.log(multiply(1,2))
npm package: @leo-zhou/mango-ui
Description: Mango UI components library
Author: Mango UI Team
Latest version: 1.0.0

# Mango UI Components

Mango UI 是一个基于 Vue 3 的移动端组件库，专为 H5 应用设计。

## TypeScript 支持

Mango UI 完整支持 TypeScript，提供完整的类型定义文件，可以在 TypeScript 项目中获得完整的类型检查和自动补全功能。

### 组件属性提示

在 TypeScript 项目中使用 Mango UI 组件时，您可以获得完整的属性提示和类型检查功能。这得益于我们为每个组件都提供了详细的类型定义。

例如，当您使用 `MgButton` 组件时，编辑器会自动提示可用的属性：

```typescript
import { MgButton } from '@mango-ui/components'

export default {
  components: {
    MgButton
  },
  setup() {
    // 在模板中使用时，会获得属性提示
    // <MgButton type="primary" size="large">按钮</MgButton>
  }
}
```

对于按需引入的组件，同样可以获得完整的属性提示：

```typescript
import { MgCard } from '@mango-ui/components'

export default {
  components: {
    MgCard
  },
  setup() {
    // 在模板中使用时，会获得属性提示
    // <MgCard shadow="hover">卡片内容</MgCard>
  }
}
```

通过使用 TypeScript 和 Mango UI，您可以获得更好的开发体验，减少错误并提高开发效率。

## 安装

```bash
npm install @mango-ui/components
```

## 使用

### 全量引入

```typescript
import { createApp } from 'vue'
import MangoUI from '@mango-ui/components'
import '@mango-ui/components/style.css'

const app = createApp(App)
app.use(MangoUI)
app.mount('#app')
```

### 按需引入

#### 方法一：使用解构赋值（推荐）

```typescript
import { MgButton, MgCard } from '@mango-ui/components'
import '@mango-ui/components/style.css'

export default {
  components: {
    MgButton,
    MgCard
  }
}
```

#### 方法二：直接引入组件文件

```typescript
import MgButton from '@mango-ui/components/dist/button/src/button.vue'
import '@mango-ui/components/style.css'

export default {
  components: {
    MgButton
  }
}
```

> 注意：直接引入组件文件的方式可以更好地利用 Tree Shaking，减少打包体积。

## 组件列表

- [Button 按钮](#button)
- [Card 卡片](#card)
- [Icon 图标](#icon)
- [Toast 轻提示](#toast)

## Tree Shaking

Mango UI 支持 Tree Shaking，这意味着在按需引入时，未使用的组件代码将不会被打包到最终的构建文件中，从而减少包体积。

为了更好地利用 Tree Shaking，建议使用 ES 模块语法进行按需引入：

```typescript
import { MgButton } from '@mango-ui/components'
```

避免使用以下方式，因为它会导入整个库：

```typescript
import * as MangoUI from '@mango-ui/components'
```

## 组件详情

### Button

按钮组件用于触发一个操作。

#### Props

| 参数 | 说明 | 类型 | 可选值 | 默认值 |
| --- | --- | --- | --- | --- |
| type | 按钮类型 | string | primary/success/warning/danger/info | primary |
| size | 按钮尺寸 | string | large/medium/small | medium |
| disabled | 是否禁用 | boolean | - | false |

### Card

卡片组件用于展示信息。

#### Props

| 参数 | 说明 | 类型 | 可选值 | 默认值 |
| --- | --- | --- | --- | --- |
| shadow | 卡片阴影显示时机 | string | always/hover/never | always |

### Icon

图标组件用于显示图标。

#### Props

| 参数 | 说明 | 类型 | 可选值 | 默认值 |
| --- | --- | --- | --- | --- |
| name | 图标名称 | string | - | - |
| size | 图标大小 | string/number | - | 16px |
| color | 图标颜色 | string | - | currentColor |

### Toast

轻提示组件用于显示简短的信息提示。

#### Props

| 参数 | 说明 | 类型 | 可选值 | 默认值 |
| --- | --- | --- | --- | --- |
| message | 提示文本 | string | - | - |
| type | 提示类型 | string | success/fail/loading/text | text |
| position | 提示位置 | string | top/middle/bottom | middle |
| duration | 展示时长(ms) | number | - | 2000 |

#### 方法

| 方法名 | 说明 | 参数 |
| --- | --- | --- |
| show | 展示提示 | options |
| hide | 隐藏提示 | - |
npm package: @leo.cavalcante/stroke2path
Description: Converts SVG strokes to paths using Inkscape
Author: Leonardo Cavalcante
Latest version: 1.0.6

# stroke2path

Converts SVG strokes to paths using Inkscape, ideal for icon font generators like IcoMoon and Fontello.

## Installation

You can use `npx` to run `stroke2path` without installing it globally:

```sh
npx @leo.cavalcante/stroke2path <input-directory> [output-directory]
```

Or install it globally:

```sh
npm install -g @leo.cavalcante/stroke2path
```

## Usage

```sh
stroke2path <input-directory> [output-directory]
```

- `<input-directory>`: The directory containing SVG files to process.
- `[output-directory]` (Optional): The directory to save processed SVG files (default: svg_path).

## Example

```sh
stroke2path . output_dir
```

Processes all SVG files in the current directory (`.`) and saves the processed files in `output_dir`.

## Options

`-h, --help`: Show help message.

## Requirements

Inkscape must be installed. You can install it using:

- Homebrew (macOS): `brew install --cask inkscape`
- Package Manager (Linux): `sudo apt-get install inkscape`
- [Download from Inkscape Website](https://inkscape.org/release/) (Windows)

## License

This project is licensed under the MIT License - see the [LICENSE](/LICENSE) file for details.

## Contributing

Feel free to fork and submit pull requests.

## Issues

Please report any issues or feature requests here.

## Author

Leonardo Cavalcante - [GitHub](https://github.com/CavalcanteLeo)

## Acknowledgments

Inspiration from icon font generators.
npm package: @leo/now-rust
Description: ZEIT Now v2.0 Rust builder
Latest version: 0.1.15
Deprecated: Please use `now-rust` instead.

# now-static-bin

This package provides a
[builder](https://zeit.co/docs/v2/deployments/builders/overview#when-to-use-builders)
for Zeit's [Now 2.0](https://zeit.co/blog/now-2) offering that enables running
Rust lambdas on Now's platform.

## Usage

Define a `main.rs` file inside a folder as follows:



Your `now.json` `"builds"` section should look something like this:

## Example

**Note**: don't forget to add `"version": 2` in your `now.json` file to use Now
2.0 explicitly.

```json
{
  "builds": [
    {
      "src": "Cargo.toml",
      "use": "@now/rust"
    }
  ]
}
```

## Copyright and License

Copyright © 2018 António Nuno Monteiro.

Distributed under the MIT License (see [LICENSE](./LICENSE)).
npm package: @leo1/hs_menus
Description: Menu component for react
Author: leo
Latest version: 1.0.19

# Getting Started with Create React App

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `npm start`

Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.\
You will also see any lint errors in the console.

### `npm test`

Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `npm run build`

Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `npm run eject`

**Note: this is a one-way operation. Once you `eject`, you can’t go back!**

If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).
npm package: @leo108/geolite2-db
Description: This repository aims to provide an easy solution to require GeoIP2 / GeoLite2 databases inside your project using npm/yarn.
Author: leo108
Latest version: 2.261.0

# geolite2-db

This repository aims to provide an easy solution to require GeoIP2 / GeoLite2 databases inside your project using composer / NPM.

Inspired by https://github.com/Dreamacro/maxmind-geoip

# Usage

## Composer

```
composer require leo108/geolite2-db
```

## NPM/Yarn

```
npm i @leo108/geolite2-db 
```

or

```
yarn add @leo108/geolite2-db
```

# License

https://blog.maxmind.com/2019/12/18/significant-changes-to-accessing-and-using-geolite2-databases/

This repository includes GeoLite2 data created by MaxMind.