@huangyunhui/js-helper
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

Javascript 常用方法库

用于前端项目便捷使用部分常用方法,避免重复造轮子

支持导出 UMD 和 ES 两种格式引入

安装

浏览器引入:

<script src="https://cdn.jsdelivr.net/npm/@huangyunhui/js-helper@x.x.x/lib/js-helper.js">
  // 注意@x.x.x替换成真实版本号
</script>
<script>
  const number = jsHelper.random(0, 10); // 生成0~10的随机整数
</script>

使用 npm:

$ npm i @huangyunhui/js-helper --save

方法使用示例:

import {firstLetterUpperCase} from '@huangyunhui/js-helper';
const str = firstLetterUpperCase('aaa'); // 生成首字母大写字符串Aaa

维护者

@黄云辉

使用许可

MIT Copyright (c) 2021-present, Huangyunhui

Package Sidebar

Install

npm i @huangyunhui/js-helper

Weekly Downloads

2

Version

1.1.0

License

MIT

Unpacked Size

65 kB

Total Files

49

Last publish

Collaborators

  • huangyunhui