Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@fe6/shared

fe646MIT0.11.0TypeScript support: included

水滴共享函数集

shared, share, @fe6/shared, @fe6

readme

Shared

水滴共享函数集

@fe6/shared CI status Codecov 单元测试覆盖 NPM downloads GitHub code size in bytes gzip GitHub GitHub language count code style: prettier

Shared 库导出为 UMD 模块。 Shared 是根据 MIT 许可发布的,并且支持现代环境。 查看版本差异,然后选择最适合您的版本。

安装

浏览器端:

<script src="https://unpkg.com/@fe6/shared"></script>

用 npm :

npm i @fe6/shared

用 node :

var shared = require('@fe6/shared');

CDN 使用

为什么会有 Shared ?

由于 Water 的不断壮大,由于项目的不断增多。众多重复的代码出现在不同的仓库中,为了规避这样的现象。

  • 减少了复制粘贴
  • 规避了代码冗余
  • 便于统一维护

CHANGELOG

更改日志.

License

Shared is licensed under a MIT License.

changelog

0.7.0 (2021-03-11)

Features

  • $o: add deepMerge method (9f7469b)

0.6.0 (2021-03-04)

Features

  • $reg: add url in string (c24450e)

0.5.0 (2021-03-04)

Features

0.4.1 (2021-03-01)

Bug Fixes

  • $storage: modify get return type (82bdb72)

Features

  • $storage: add storage methods (98e2fa6)

0.4.0 (2021-03-01)

Features

  • $storage: add storage methods (eef84c4)

0.3.0 (2021-02-26)

0.2.0 (2021-02-26)

Features

  • $format: add objectToQuery method (290bbfd)

0.1.3 (2021-02-26)

Bug Fixes

  • $types: modify the types entry file (d8ca478)
  • $typscript: modify the generation rules of type files (dc619f8)

0.1.2 (2021-02-23)

0.1.1 (2021-02-23)

Bug Fixes

  • $install: check yarn js not found (769b9d2)

0.1.0 (2021-02-23)

Features

  • $device: add isclient method (be6acff)
  • $format: add file size method (48a8c98)
  • $format: add some format methods (694e020)
  • $is: add type judgment method (294245d)
  • $number: add number methods (6599528)
  • $o: add object handle methods (d7b43c3)
  • $util: add clone method (0521348)
  • $util: add uuid method (61c368a)

Reverts