Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fe6/shared
共享的内容
https://github.com/fe6/shared
javascript
Last synced: 4 days ago
JSON representation
共享的内容
- Host: GitHub
- URL: https://github.com/fe6/shared
- Owner: fe6
- License: mit
- Created: 2021-02-03T09:29:16.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-07-22T17:02:08.000Z (over 3 years ago)
- Last Synced: 2024-10-02T23:35:27.450Z (about 2 months ago)
- Topics: javascript
- Language: TypeScript
- Homepage: https://fe6.github.io/shared/
- Size: 761 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
## Shared
> 水滴共享函数集[![@fe6/shared][npm-image]][npm-url] [![CI status][github-action-image]][github-action-url] [![Codecov 单元测试覆盖][codecov-image]][codecov-url] [![NPM downloads][downloads-image]][downloads-url] [![GitHub code size in bytes][size-image]][size-url] ![gzip][gzip-image] [![GitHub][mit-image]][mit-url] ![GitHub language count][lang-image] ![code style: prettier][prettier-image]
[github-action-image]: https://github.com/fe6/shared/workflows/CI/badge.svg
[github-action-url]: https://github.com/fe6/shared/actions?query=workflow%3ACI
[npm-image]: https://img.shields.io/npm/v/@fe6/shared.svg
[npm-url]: https://www.npmjs.org/package/@fe6/shared
[downloads-image]: http://img.shields.io/npm/dm/@fe6/shared.svg
[downloads-url]: https://npmjs.org/package/@fe6/shared
[size-image]: https://img.badgesize.io/https://unpkg.com/@fe6/shared/dist/shared.global.prod.js?label=shared.min.js&compression=gzip
[size-url]: https://unpkg.com/@fe6/shared
[mit-image]: https://img.shields.io/github/license/fe6/shared
[mit-url]: https://github.com/fe6/shared/blob/master/LICENSE
[codecov-image]: https://img.shields.io/codecov/c/github/fe6/shared/master.svg
[codecov-url]: https://codecov.io/gh/fe6/shared/branch/master
[lang-image]: https://img.shields.io/github/languages/count/fe6/shared.svg
[gzip-image]: https://img.badgesize.io/https:/unpkg.com/@fe6/shared?compression=gzip
[prettier-image]: https://img.shields.io/badge/code_style-prettier-ff69b4.svgShared 库导出为 UMD 模块。 Shared 是根据 MIT 许可发布的,并且支持现代环境。 查看版本差异,然后选择最适合您的版本。
## 安装
浏览器端:
``` html
```
用 npm :
``` js
npm i @fe6/shared
```用 node :
``` js
var shared = require('@fe6/shared');
```## CDN 使用
- [esm.run](https://esm.run/@fe6/shared)
- [unpkg](https://unpkg.com/@fe6/shared)
- [jsdelivr](https://cdn.jsdelivr.net/npm/@fe6/shared)## 为什么会有 Shared ?
由于 Water 的不断壮大,由于项目的不断增多。众多重复的代码出现在不同的仓库中,为了规避这样的现象。
- 减少了复制粘贴
- 规避了代码冗余
- 便于统一维护## CHANGELOG
[更改日志](./CHANGELOG.md).
## License
Shared is licensed under a [MIT License](./LICENSE).