open-index/open-npm huggingface dataset:
npm package: @j-lints/commitlint-config
Description: 统一 commitLint 配置
Latest version: 0.0.2

# @j-lints/commitlint-config

统一 commitLint 配置

## 安装

```bash
npm i @j-lints/commitlint-config -D
```

## 使用

1、修改 `commitlint` 配置文件，将 `extends` 配置成 `@j-lints/commitlint-config`

```json
{
  "extends": ["@j-lints/commitlint-config"]
}
```

2、配置 [husky](https://github.com/typicode/husky) Git 提交时校验 commit 信息
npm package: @j-lints/eslint-config-ts
Description: 统一 ESLint 配置: typescript 语言
Latest version: 0.0.2

# @j-lints/eslint-config-ts

统一 ESLint 配置: typescript 语言

## 安装

```bash
npm i @j-lints/eslint-config-ts -D
```

## 使用

1、修改 `eslint` 配置文件，将 `extends` 配置成 `@j-lints/eslint-config-ts`

```json
{
  "extends": ["@j-lints/eslint-config-ts"]
}
```

2、添加 `prettier` 配置文件，如果需要。

3、添加 `tsconfig.json` 配置文件，如果需要。
npm package: @j-lints/eslint-config-ts-react
Description: 统一 ESLint 配置: react + typescript 技术栈
Latest version: 0.0.2

# @j-lints/eslint-config-ts-react

统一 ESLint 配置: react + typescript 技术栈

## 安装

```bash
npm i @j-lints/eslint-config-ts-react -D
```

## 使用

1、修改 `eslint` 配置文件，将 `extends` 配置成 `@j-lints/eslint-config-ts-react`

```json
{
  "extends": ["@j-lints/eslint-config-ts-react"]
}
```

2、添加 `prettier` 配置文件，如果需要。

3、添加 `tsconfig.json` 配置文件，如果需要。
npm package: @j-lints/stylelint-config-scss
Description: 统一 StyleLint 配置
Latest version: 0.0.2

# @j-lints/stylelint-config-scss

统一 StyleLint 配置

## 安装

```bash
npm i @j-lints/stylelint-config-scss -D
```

## 使用

修改 `stylelint` 配置文件，将 `extends` 配置成 `@j-lints/stylelint-config-scss`

```json
{
  "extends": ["@j-lints/stylelint-config-scss"]
}
```

## 开启编辑器校验提示 - vscode

编辑项目配置文件 `.vscode/settings.json`（或开启编辑器全局校验配置）, 添加 `scss` 语法校验

```json
{
  "stylelint.validate": ["css", "less", "postcss", "scss"]
}
```
npm package: @j-mori/lambda-cache
Description: A simple, fast, cheap, lightweight dependency-less and cross execution cache system for AWS Lambda functions, based on writing to files in the ["/tmp" folder](https://aws.amazon.com/it/blogs/aws/aws-lambda-now-supports-up-to-10-gb-ephemeral-storage/). It 
Author: Jacopo Mori
Latest version: 1.0.3

# lambda-cache

A simple, fast, cheap, lightweight dependency-less and cross execution cache system for AWS Lambda functions, based on writing to files in the ["/tmp" folder](https://aws.amazon.com/it/blogs/aws/aws-lambda-now-supports-up-to-10-gb-ephemeral-storage/). It allows you to set a time-to-live (TTL) for cache keys and invalidate the cache.

## Installation

You can install the package via npm:
```bash
npm install @j-mori/lambda-cache
```

## Usage

```typescript
import { Cache } from 'lambda-cache';

// Create a new cache with the default base path /tmp/cache
const cache = new Cache();

// Set a value
cache.set('key', 'value', 10);  // expires in 10 seconds

// Get a value
console.log(cache.get('key'));

// Delete a value
cache.delete('key');

// Clear all values
cache.clear();

```

## API

### `new Cache(path?: string)`

Creates a new cache instance that stores the data in the specified path.

- `path` (optional): the path where the cache files will be stored.
### `cache.set(key: string, value: any, ttl?: number)`

Stores a value in the cache.

- `key`: the key used to store and retrieve the value.
- `value`: the value to store.
- `ttl` (optional): the time to live for this cache entry in seconds. If not provided, the key won't expire.

### `cache.get(key: string)`

Retrieves a value from the cache.

- `key`: the key used to store the value.

Returns the stored value or `undefined` if the key does not exist or the value has expired.

### `cache.delete(key: string)`

Deletes a value from the cache.

- `key`: the key used to store the value.

### `cache.clear()`

Clears all the values from the cache.