1 | <h1 align="center">Buession Prototype</h1>
|
2 | <div align="center">
|
3 | <p align="center">JavaScript 原生对象扩展</p>
|
4 | <a href="https://codecov.io/github/buession/buession-prototype?branch=master">
|
5 | <img src="https://img.shields.io/codecov/c/github/buession/buession-prototype?token=GDtRrhVDwe" alt="Coverage Status" />
|
6 | </a>
|
7 | <a href="https://github.com/buession/buession-prototype/actions/workflows/codecov.yml">
|
8 | <img src="https://github.com/buession/buession-prototype/actions/workflows/codecov.yml/badge.svg" alt="Codecov" />
|
9 | </a>
|
10 | <a href="https://github.com/buession/buession-prototype/actions/workflows/codeql-analysis.yml">
|
11 | <img src="https://github.com/buession/buession-prototype/actions/workflows/codeql-analysis.yml/badge.svg" alt="CodeQL" />
|
12 | </a>
|
13 | <a href="https://www.npmjs.com/package/@buession/prototype">
|
14 | <img src="https://img.shields.io/bundlephobia/minzip/@buession/prototype/latest" alt="Size" />
|
15 | </a>
|
16 | <a href="https://www.npmjs.com/package/@buession/prototype">
|
17 | <img src="https://img.shields.io/npm/v/@buession/prototype" alt="Version" />
|
18 | </a>
|
19 | <a href="https://www.npmjs.com/package/@buession/prototype">
|
20 | <img src="https://img.shields.io/github/languages/top/buession/buession-prototype" alt="Languages" />
|
21 | </a>
|
22 | <a href="https://www.npmjs.com/package/@buession/prototype">
|
23 | <img src="https://img.shields.io/npm/l/@buession/prototype" alt="License" />
|
24 | </a>
|
25 | <a href="https://github.com/buession/buession-prototype/stargazers">
|
26 | <img src="https://img.shields.io/github/stars/buession/buession-prototype" alt="Star" />
|
27 | </a>
|
28 | <a href="https://www.npmjs.com/package/buession-prototype">
|
29 | <img src="https://img.shields.io/npm/dm/@buession/prototype" alt="Download" />
|
30 | </a>
|
31 | <a href="https://www.npmjs.com/package/buession-prototype">
|
32 | <img src="https://img.shields.io/snyk/vulnerabilities/npm/@buession/prototype" alt="Vulnerabilities" />
|
33 | </a>
|
34 | </div>
|
35 |
|
36 | ## 为什么选择 Buession Prototype
|
37 |
|
38 | Buession Prototype 是基于对原生 JavaScript 对象(如:String、Array、Date)的扩展,和浏览器兼容性的处理,并添加在实际场景中的一些常用方法。
|
39 |
|
40 | ## 安装
|
41 |
|
42 | 您可以通过 [NPM](https://www.npmjs.com/)、[YARN](https://yarnpkg.com/) 或者通过 `<script>` 的方式引入 [unpkg.com](https://unpkg.com/) 上的包。
|
43 |
|
44 | ### NPM
|
45 |
|
46 | ```sh
|
47 | npm install @buession/prototype
|
48 | # or
|
49 | yarn add @buession/prototype
|
50 | ```
|
51 |
|
52 | ### CDN
|
53 |
|
54 | > 对于生产环境,我们推荐链接到一个明确的版本号和构建文件,以避免新版本造成的不可预期的破坏。
|
55 |
|
56 | ```html
|
57 | 最新版:<script src="https://unpkg.com/@buession/prototype/dist/prototype.min.js" type="text/javascript"></script>
|
58 | 具体版本:<script src="https://unpkg.com/@buession/prototype@版本/dist/prototype.min.js" type="text/javascript"></script>
|
59 | ```
|
60 |
|
61 | ## License
|
62 |
|
63 | [MIT License](https://github.com/buession/buession-prototype/blob/master/LICENSE) © 2020-2021 |
\ | No newline at end of file |