# sunny-js

> ![npm version](https://img.shields.io/npm/v/sunny-js) ![npm downloads](https://img.shields.io/npm/dm/sunny-js) ![license](https://img.shields.io/npm/l/sunny-js)

Latest version **2.3.5** (published 2023-09-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install sunny-js
pnpm add sunny-js
yarn add sunny-js
bun add sunny-js
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.3.5 |
| Published | 2023-09-15 |
| First published | 2019-09-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 332.7 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | shinvey |

## Links

- npm: https://www.npmjs.com/package/sunny-js
- npm.io page: https://npm.io/package/sunny-js

## Dependencies (4)

- [qs](https://npm.io/package/qs.md) ^6.10.3
- [rxjs](https://npm.io/package/rxjs.md) ^6.6.7
- [uuid](https://npm.io/package/uuid.md) ^8.3.2
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.17.2

## Recent versions

- 2.3.5 (latest) — 2023-09-15
- 2.3.3 — 2023-03-25
- 2.3.2 — 2023-01-18
- 2.3.1 — 2022-12-31
- 2.3.0 — 2022-12-31
- 2.2.6 — 2022-10-05
- 2.2.5 — 2022-10-04
- 2.2.4 — 2022-08-17
- 2.2.3 — 2022-08-11
- 2.2.2 — 2022-07-28
- 2.2.1 — 2022-06-15
- 2.2.0 — 2022-06-11
- 2.1.32 — 2021-11-12
- 2.1.31 — 2021-11-05
- 2.1.30 — 2021-11-05
- … 89 more at https://npm.io/package/sunny-js/versions

## README

# sunny-js

![npm version](https://img.shields.io/npm/v/sunny-js)
![npm downloads](https://img.shields.io/npm/dm/sunny-js)
![license](https://img.shields.io/npm/l/sunny-js)

这个一个工具函数库。

## Installation

使用npm安装

```shell
npm i sunny-js
```

使用yarn安装

```shell
yarn add sunny-js
```

使用pnpm安装

```shell
pnpm add sunny-js
```

## Usages

cjs

```js
const { sum } = require('sunny-js')
console.log(sum([1, 2]))
// => 3
```

esm

```ts
import { sum } from 'sunny-js'
console.log(sum([1, 2]))
// => 3
```

更多用例均分布在jsdoc风格的代码注释中，使用时可被IDE读取并展示。

或者借助typedoc生成html文档

```shell
npx --yes typedoc --out typedoc --categorizeByGroup false --entryPoints src
npx --yes open-cli typedoc/index.html
```

## Motivation

在ECMAScript定义的函数或lodash无法满足常规需求的情况下，我创建了这个工具函数库。
用来积累日常工作中不太变动、经常出现、且需要避免到处复制粘贴的工具函数。

## Browser Compatibility

![浏览器兼容性](https://img.shields.io/badge/browserslist-Android%20%3E%3D%205%2CiOS%20%3E%3D%2010-informational)

## Changelog

See [CHANGELOG.md](CHANGELOG.md)

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