https://github.com/pandaoh/js-xxx
[ http://x.biugle.cn ] Fed JavaScript Function Library. 前端 JavaScript 常用函数/工具/方法库,支持按需引入,方便抽离工具类等常用方法。
https://github.com/pandaoh/js-xxx
function function-library functions javascript js js-xxx method method-library methods rollup ts typescript xfunction xfunctions xmethod xmethods xxx
Last synced: about 1 year ago
JSON representation
[ http://x.biugle.cn ] Fed JavaScript Function Library. 前端 JavaScript 常用函数/工具/方法库,支持按需引入,方便抽离工具类等常用方法。
- Host: GitHub
- URL: https://github.com/pandaoh/js-xxx
- Owner: pandaoh
- License: mit
- Created: 2022-04-25T06:43:56.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-09-21T05:45:18.000Z (over 1 year ago)
- Last Synced: 2024-09-28T00:47:50.923Z (over 1 year ago)
- Topics: function, function-library, functions, javascript, js, js-xxx, method, method-library, methods, rollup, ts, typescript, xfunction, xfunctions, xmethod, xmethods, xxx
- Language: HTML
- Homepage: https://www.npmjs.com/package/js-xxx
- Size: 13.1 MB
- Stars: 47
- Watchers: 2
- Forks: 5
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 前端 JavaScript 常用函数/工具/方法库
## [文档(x.biugle.cn)](http://x.biugle.cn)
[](https://www.oscs1024.com/project/pandaoh/js-xxx?ref=badge_small)
> 封装前端常用函数/方法/工具库,支持按需引入;无依赖和第三方库,无冗余代码,无需改动原代码结构;拆箱即用,简单便捷。
* [GitHub](https://github.com/pandaoh/js-xxx)
* [Npm](https://www.npmjs.com/package/js-xxx)
* [Docs-在线文档](https://pandaoh.github.io/js-xxx/html/) `已引入 (js-xxx),可直接在控制台调试。`
## Install-安装
```bash
npm i js-xxx
```
## Use-使用
```javascript
// Es or Node
import { xFunctionName } from 'js-xxx';
const { xFunctionName } = require('js-xxx');
xFunctionName();
// Browser
$xxx.xFunctionName();
$xxx.formatDate(new Date(), 'mm-dd');
// 可参考 ./demo/test.js,示例如下。
import { showToast, md5, scrollToTop, formatDate, uuid } from 'js-xxx';
const { showToast, md5, scrollToTop, formatDate, uuid } = require('js-xxx');
formatDate(new Date(), 'yyyy-mm-dd hh:ii:ss');
```
## Docs-文档
* [Web 网页在线文档](https://pandaoh.github.io/js-xxx/html/)
* [Docs MarkDown-文档](https://github.com/pandaoh/js-xxx/blob/main/docs/README.md)
* [Docs MarkDown-文档镜像](https://gitee.com/doubleam/js-xxx/blob/main/docs/README.md)
## Others
* [Issue](https://github.com/pandaoh/js-xxx/issues)
* [Pull Request](https://github.com/pandaoh/js-xxx/pulls)
* [hxbpandaoh@163.com](mailto:hxbpandaoh@163.com)
* [Blog](http://a.biugle.cn)
* Leo He