# sn-js-utils

> JS | TS 常用工具类库

Latest version **0.1.7** (published 2020-12-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install sn-js-utils
pnpm add sn-js-utils
yarn add sn-js-utils
bun add sn-js-utils
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.7 |
| Published | 2020-12-22 |
| First published | 2019-03-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 313.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | CozySnail |
| Maintainers | champkeh, cozysnail |
| Keywords | utils, js-utils, jsUtils, ts-utils, tsUtil |

## Links

- npm: https://www.npmjs.com/package/sn-js-utils
- Repository: https://github.com/CozySnail/sn-js-utils
- Homepage: https://github.com/CozySnail/sn-js-utils#readme
- Issues: https://github.com/CozySnail/sn-js-utils/issues
- npm.io page: https://npm.io/package/sn-js-utils

## Dependencies (1)

- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.1.2

## Recent versions

- 0.1.7 (latest) — 2020-12-22
- 0.1.6 — 2020-12-22
- 0.1.5-rc.10 — 2019-03-22
- 0.1.5-rc.9 — 2019-03-15
- 0.1.5-rc.8 — 2019-03-15
- 0.1.5-rc.7 — 2019-03-11
- 0.1.5-rc.6 — 2019-03-11
- 0.1.5-rc.4 — 2019-03-11
- 0.1.5-rc.3 — 2019-03-11
- 0.1.5-rc.1 — 2019-03-11
- 0.1.5 — 2019-03-11
- 0.1.4 — 2019-03-08
- 0.1.3 — 2019-03-08
- 0.1.2 — 2019-03-08
- 0.1.1 — 2019-03-07
- … 1 more at https://npm.io/package/sn-js-utils/versions

## README

# [sn-js-utils](https://github.com/CozySnail/sn-js-utils)
[![](https://img.shields.io/static/v1.svg?label=Powered%20by&message=snail&color=%3CCOLOR%3E)](https://github.com/CozySnail/sn-js-utils)
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/CozySnail/sn-js-utils/blob/master/LICENSE)
[![Build Status](https://travis-ci.org/CozySnail/sn-js-utils.svg?branch=master)](https://travis-ci.org/CozySnail/sn-js-utils)
[![Coveralls](https://img.shields.io/coveralls/CozySnail/sn-js-utils.svg)](https://coveralls.io/github/CozySnail/sn-js-utils)
[![npm](https://img.shields.io/badge/npm-6.8.0-orange.svg)](https://www.npmjs.com/package/sn-js-utils)
[![NPM downloads](http://img.shields.io/npm/dm/sn-js-utils.svg?style=flat-square)](http://www.npmtrends.com/sn-js-utils)
[![Percentage of issues still open](http://isitmaintained.com/badge/open/CozySnail/sn-js-utils.svg)](http://isitmaintained.com/project/CozySnail/sn-js-utils "Percentage of issues still open")

简体中文 | [English](README.en-US.md)

 `JS|TS` 第三方常用工具类库

## :star: 特性

-  `JS|TS` 第三方常用工具类库

## :pill: 兼容性
单元测试支持如下环境：

| IE   | CH   | FF   | SF   | OP   | IOS  | Android   | Node  |
| ---- | ---- | ---- | ---- | ---- | ---- | ---- | ----- |
| 6+   | 29+ | 55+  | 9+   | 50+  | 9+   | 4+   | 4+ |

## :rocket: 使用者指南

通过npm下载安装代码

```bash
$ npm install --save sn-js-utils
```

如果你是node环境

```js
const snJsUtils = require('../dist/index.js');
```

如果你是webpack等环境

```js
import { DateUtil } from 'sn-js-utils';
```

如果你是requirejs环境

```js
requirejs(['node_modules/sn-js-utils/dist/index.aio.js'], function (snJsUtils) {
    console.log(snJsUtils.DateUtil.formatDate(new Date(), 'yyyy-MM-dd'));
})
```

如果你是浏览器环境

```html
<script src="node_modules/sn-js-utils/dist/index.aio.js"></script>
```

## :bookmark_tabs: 文档
[API](./doc/api.zh-CN.md)

## 贡献者列表

[contributors](https://github.com/CozySnail/sn-js-utils/graphs/contributors)

## :gear: 更新日志
[CHANGELOG.md](./CHANGELOG.md)

## :airplane: 计划列表
[TODO.md](./TODO.md)

## :bulb: 谁在使用

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