open-index/open-npm huggingface dataset:
npm package: @lazy_sock/tailwindcss-fluid-typography
Description: A tailwind plugin which generates clamp() functions for fluid typography directly in tailwind.
Author: lazy sock
Latest version: 1.0.2

# tailwindcss-fluid-typography

A tailwindcss plugin generating clamp functions directly in tailwind.

## Installation

Install it:

```bash
npm i @lazy_sock/tailwindcss-fluid-typography
```

Then add it to the tailwind config:

```js
/** @type {import('tailwindcss').Config} */
module.exports = {
  content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
  theme: {
    extend: {},
  },
  plugins: [require("@lazy_sock/tailwindcss-fluid-typography")],
};
```

## Usage

```html
<div class="fluid-[1_3_500_1000]">Lorem Ipsum</div>
```

You have to provide four parameters: the lowest font size (in rem), the highest font-size (in rem), the vw where scaling starts (in px) and the vw where scaling ends (in px). Those parameters are seperated by a underscore ( \_ ).  
If you don't know what those parameters are, check out [this](https://css-tricks.com/linearly-scale-font-size-with-css-clamp-based-on-the-viewport/) guide about scaling font-size linearly.

## License

[MIT](https://choosealicense.com/licenses/mit/)
npm package: @lazyb/cli
Description: a simple cli
Author: lazy-b
Latest version: 1.0.0

# Simple Cli

本工具是个简单的小工具，目前支持以下功能：  
  1. init  
     1. 给项目添加了一系列校验代码的依赖  
     2. 进行相关的配置  
     3. 给项目添加一系列校验 git 提交信息的依赖  
     4. 利用 git 钩子对提交代码和提交信息进行校验  
     5. 也就是把代码校验工作流给搭建完成了  
     6. 主要是添加了下面的模块  
        1. eslint  
        2. stylelint  
        3. prettier  
        4. husky  
        5. commitizen  
        6. validate-commit-msg  
        7. lint-staged  
        8. ...  
     7. 如果初始化失败，那么建议将 node_modules 删除再次执行一次命令  
     8. 如果执行了上面的步骤还是初始化失败，则可以联系作者  
     9. 为了防止校验规则冲突，会将 .eslintrc.js .prettierrc.js 进行移除  
     10. 如果以前的对应配置文件不是上面的格式，需要自行手动移除，否则校验规则仍然会按照原规则进行，但是不影响整个工作流的进行  
  2. TODO:  

## Usage

** 【推荐】直接在项目根目录运行 `npx @lazyb/cli init` **  

或者安装到项目依赖中  

#### NPM

```shell
npm i @lazyb/cli -D
```

#### YARN

```shell
yarn add @lazyb/cli --dev
```

#### Usage

进入项目根目录运行 `.\node_modules\.bin\lazyb init`
npm package: @lazyb/eslint-config
Description: eslint config
Author: lazy-b
Latest version: 1.0.0

# Eslint Config

## Install

#### NPM

```shell
npm i @lazyb/eslint-config typescript eslint -D
```

#### YARN

```shell
yarn add @lazyb/eslint-config typescript eslint --dev
```

## Usage

给 `package.json` 添加  
```json
  "scripts": {
    "lint": "eslint --ext .js,.vue src",
  },
  "eslintConfig": {
    "root": true,
    "extends": [
      "@lazyb"
    ]
  }
```
可以运行 `npm run lint -- --fix` 进行代码修复
npm package: @lazyb/prettier-config
Description: a config to perttier
Author: lazy-b
Latest version: 1.0.0

# Pretter Config

## Install

#### NPM

```shell
npm i @lazyb/prettier-config -D
```

#### YARN

```shell
yarn add @lazyb/prettier-config --dev
```

## Usage

给 package.json 添加  

```json
"prettier": "@lazyb/prettier-config"
```

可以运行 .\node_modules\.bin\prettier --write . 对目标进行格式化  

或者给 package.json 添加命令  

```json
"format": "prettier --write src/**/*.{js,jsx,ts,tsx,vue,css,scss,sass,less}",
```

然后运行 npm run format 进行格式化
npm package: @lazyb/stylelint-config
Description: stylelint config
Author: lazy-b
Latest version: 1.0.0

# Stylelint Config

## Install

#### NPM

```shell
npm i @lazyb/stylelint-config stylelint -D
```

#### YARN

```shell
yarn add @lazyb/stylelint-config stylelint --dev
```

## Usage

给 `package.json` 添加  

```json
  "scripts": {
    "lint:style": "stylelint src/**/*.css src/**/*.vue src/**/*.less src/**/*.sass"
  },
  "stylelint": {
    "extends": [
      "@lazyb/stylelint-config"
    ]
  },
```

可以运行 `npm run lint:style -- --fix` 进行代码修复