# camel-utils

> 一个用于扩展类型操作的工具集

Latest version **0.0.2** (published 2023-03-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install camel-utils
pnpm add camel-utils
yarn add camel-utils
bun add camel-utils
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2023-03-02 |
| First published | 2023-03-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 14.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | yistar |
| Maintainers | yistar |
| Keywords | data, array, csv, json |

## Links

- npm: https://www.npmjs.com/package/camel-utils
- npm.io page: https://npm.io/package/camel-utils

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.0.2 (latest) — 2023-03-02
- 0.0.1 — 2023-03-02

## README

## 简介
camel-utils是一个提供了诸多适用于类型操作的辅助类和辅助方法的工具库。 <span style='color: #aaa'>(目前处于开发阶段)</span>

## 如何使用？
首先，安装camel-utils：
```shell
npm i -s camel-utils
```

然后，在项目中导入需要的类或方法并进行使用：
```js
// .mjs
import { RangeIndex, MultiIndex } from './dist/index.js';

const arr = [1, 2, 3, 4, 5];

console.log(...new RangeIndex(10, 1, -2).keys());
// 10 8 6 4 2

console.log(...new MultiIndex([1, 3, 4]).entries(arr));
// [ 1, 2 ] [ 3, 4 ] [ 4, 5 ]
```
## 功能特色
- 简单易用
- 轻松上手
- 功能全面
- 结构简单
- 小巧便捷
- 导入即用
## 类型及方法
### 数组索引
#### RangeIndex
```ts
interface RangeIndex {
  new (start: number, end: number, step: number = 1): RangeIndex;
}
```
#### MultiIndex
```ts
interface MultiIndex {
  new (indexes: (number | RangeIndex)[]): MultiIndex;
}
```

---
_Source: https://npm.io/package/camel-utils · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
