open-index/open-npm huggingface dataset:
npm package: @sprintpm/cli
Description: Sprint command line interface
Latest version: 0.2.2

# Sprint CLI

Sprint CLI provides quick issue workflows from the terminal.

## Commands

- `sprint login`
- `sprint org <org-slug>`
- `sprint project [project-key]`
- `sprint list (--status/--type/-t/--assignee/-a/--sprint/--sort/--json)`
- `sprint show <project-key-issue-number> (--json)`
- `sprint create <issue-name> <issue-description> (--status/-s, --type/-t, --assignee/-a, --sprint)`
- `sprint branch <project-key-issue-number> <base-branch>(optional)`

## Auth

`sprint login` starts a device-code flow.

1. CLI asks backend for a login code.
2. You open the verification URL in browser.
3. You submit the code on `/cli/login`.
4. CLI polls until approved and stores token + csrf in config.

Config path defaults to `~/.config/sprint-cli/config.json`.
npm package: @sprit/console-tag
Description: ![示例](./images/console@2x.png)
Author: 赵永盛
Latest version: 1.0.1

# console message with color tags
![示例](./images/console@2x.png)

## rspack
```typescript
rspack: (config, { appendPlugins, HtmlPlugin }) => {
  appendPlugins(new ConsoleTagRspackPlugin({ HtmlPlugin }))
},
```

## webpack
```typescript
webpackChain(config, { HtmlPlugin }) {
  config.plugin('tag').use(
    new ConsoleTagWebpackPlugin(
      {
        HtmlPlugin,
        git: {
          branch: true,
          hash: 7,
          lastCommitDateTime: true,
        },
        custom() {
          return {
            构建版本: process.env.BUILD_VERSION ?? '-',
          };
        },
      }
    )
  )
}
```
npm package: @sprit/tailwindcss-webpack-plugin
Description: By compiling the tailwind CSS, generating the style and inserting the body independently, you can solve the problem of style overwriting(other library of UI component, like antd & etc.)
Author: 赵永盛
Latest version: 0.1.6

# Introduction
By compiling the tailwind CSS, generating the style and inserting the body independently, you can solve the problem of style overwriting(other library of UI component, like antd & etc.)

# Usage
```typescript
// esm
import { TailwindCssWebpackPlugin } from '@sprit/tailwindcss-webpack-plugin';
// cjs
const { TailwindCssWebpackPlugin } = require('@sprit/tailwindcss-webpack-plugin');

// webpack plugins
{
  plugins: [
    new TailwindCssWebpackPlugin()
  ]
}
```

# Effect
Insert the generated compressed file into the body tag
npm package: @sprit/use-cache-state
Description: This is a React hook that can cache state values.可缓存 state 的 hook.
Author: 1562743134@qq.com
Latest version: 1.0.3

# use-cache-state
This is a React hook that can cache state values.

# About
Keep Api consistent with useState. When the component is destroyed and created again, the data after the last operation will be used as the initial value of the state, providing global caching capability. This is commonly used to maintain the previous state when switching pages/routes and returning to them again.

Api 和 useState 保持一致。可以在组件销毁，下次创建时，会将上次操作后的数据作为 state 初始化值，提供了全局缓存能力。常用于切换页面/路由并再次回退时，保持上次的状态

# Install
```bash
yarn install @sprit/use-cache-state
```

# Usage
```typescript
import { useCacheState } from '@sprit/use-cache-state';

const cacheKey = Symbol();

const Table = () => {
  const [pagination, setPagination] = useCacheState<Pagination>(cacheKey, { pageNo: 1 });

  return (
    <Table pagination={pagination} />
  )
};
```

# License
MIT © <1562743134@qq.com>