@buession/prototype
Version:
A native object extension framework for Javascript.
63 lines (52 loc) • 2.93 kB
Markdown
<h1 align="center">Buession Prototype</h1>
<div align="center">
<p align="center">JavaScript 原生对象扩展</p>
<a href="https://codecov.io/github/buession/buession-prototype?branch=master">
<img src="https://img.shields.io/codecov/c/github/buession/buession-prototype?token=GDtRrhVDwe" alt="Coverage Status" />
</a>
<a href="https://github.com/buession/buession-prototype/actions/workflows/codecov.yml">
<img src="https://github.com/buession/buession-prototype/actions/workflows/codecov.yml/badge.svg" alt="Codecov" />
</a>
<a href="https://github.com/buession/buession-prototype/actions/workflows/codeql-analysis.yml">
<img src="https://github.com/buession/buession-prototype/actions/workflows/codeql-analysis.yml/badge.svg" alt="CodeQL" />
</a>
<a href="https://www.npmjs.com/package/@buession/prototype">
<img src="https://img.shields.io/bundlephobia/minzip/@buession/prototype/latest" alt="Size" />
</a>
<a href="https://www.npmjs.com/package/@buession/prototype">
<img src="https://img.shields.io/npm/v/@buession/prototype" alt="Version" />
</a>
<a href="https://www.npmjs.com/package/@buession/prototype">
<img src="https://img.shields.io/github/languages/top/buession/buession-prototype" alt="Languages" />
</a>
<a href="https://www.npmjs.com/package/@buession/prototype">
<img src="https://img.shields.io/npm/l/@buession/prototype" alt="License" />
</a>
<a href="https://github.com/buession/buession-prototype/stargazers">
<img src="https://img.shields.io/github/stars/buession/buession-prototype" alt="Star" />
</a>
<a href="https://www.npmjs.com/package/buession-prototype">
<img src="https://img.shields.io/npm/dm/@buession/prototype" alt="Download" />
</a>
<a href="https://www.npmjs.com/package/buession-prototype">
<img src="https://img.shields.io/snyk/vulnerabilities/npm/@buession/prototype" alt="Vulnerabilities" />
</a>
</div>
## 为什么选择 Buession Prototype
Buession Prototype 是基于对原生 JavaScript 对象(如:String、Array、Date)的扩展,和浏览器兼容性的处理,并添加在实际场景中的一些常用方法。
## 安装
您可以通过 [NPM](https://www.npmjs.com/)、[YARN](https://yarnpkg.com/) 或者通过 `<script>` 的方式引入 [unpkg.com](https://unpkg.com/) 上的包。
### NPM
```sh
npm install @buession/prototype
# or
yarn add @buession/prototype
```
### CDN
> 对于生产环境,我们推荐链接到一个明确的版本号和构建文件,以避免新版本造成的不可预期的破坏。
```html
最新版:<script src="https://unpkg.com/@buession/prototype/dist/prototype.min.js" type="text/javascript"></script>
具体版本:<script src="https://unpkg.com/@buession/prototype@版本/dist/prototype.min.js" type="text/javascript"></script>
```
## License
[MIT License](https://github.com/buession/buession-prototype/blob/master/LICENSE) © 2020-2021